mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11342] Fix "unexpected token" syntax error
PHPBB-11342
This commit is contained in:
parent
a54128b3bc
commit
37093b6aa5
1 changed files with 5 additions and 1 deletions
|
@ -54,7 +54,7 @@ phpbb.addAjaxCallback('mark_forums_read', function(res) {
|
||||||
* @param update_topic_links bool Wether "Mark topics read" links should be
|
* @param update_topic_links bool Wether "Mark topics read" links should be
|
||||||
* updated. Defaults to true.
|
* updated. Defaults to true.
|
||||||
*/
|
*/
|
||||||
phpbb.addAjaxCallback('mark_topics_read', function(res, update_topic_links = true) {
|
phpbb.addAjaxCallback('mark_topics_read', function(res, update_topic_links) {
|
||||||
var readTitle = res.NO_UNREAD_POSTS;
|
var readTitle = res.NO_UNREAD_POSTS;
|
||||||
var unreadTitle = res.UNREAD_POSTS;
|
var unreadTitle = res.UNREAD_POSTS;
|
||||||
var iconsArray = {
|
var iconsArray = {
|
||||||
|
@ -68,6 +68,10 @@ phpbb.addAjaxCallback('mark_topics_read', function(res, update_topic_links = tru
|
||||||
var classMap = {};
|
var classMap = {};
|
||||||
var classNames = [];
|
var classNames = [];
|
||||||
|
|
||||||
|
if (typeof update_topic_links === 'undefined') {
|
||||||
|
update_topic_links = true;
|
||||||
|
}
|
||||||
|
|
||||||
$.each(iconsArray, function(unreadClass, readClass) {
|
$.each(iconsArray, function(unreadClass, readClass) {
|
||||||
$.each(iconsState, function(key, value) {
|
$.each(iconsState, function(key, value) {
|
||||||
// Only topics can be hot
|
// Only topics can be hot
|
||||||
|
|
Loading…
Add table
Reference in a new issue