diff options
author | Marc Alexander <admin@m-a-styles.de> | 2013-02-19 13:04:06 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2013-02-20 23:19:25 +0100 |
commit | 37093b6aa522dd15d05659eaf6c541e25e163289 (patch) | |
tree | 8b1633d5f39629651b19e85da79f4b54379d7ecf /phpBB/styles/prosilver/template/ajax.js | |
parent | a54128b3bc146fa6f46bd10c712253e568352ec8 (diff) | |
download | forums-37093b6aa522dd15d05659eaf6c541e25e163289.tar forums-37093b6aa522dd15d05659eaf6c541e25e163289.tar.gz forums-37093b6aa522dd15d05659eaf6c541e25e163289.tar.bz2 forums-37093b6aa522dd15d05659eaf6c541e25e163289.tar.xz forums-37093b6aa522dd15d05659eaf6c541e25e163289.zip |
[ticket/11342] Fix "unexpected token" syntax error
PHPBB-11342
Diffstat (limited to 'phpBB/styles/prosilver/template/ajax.js')
-rw-r--r-- | phpBB/styles/prosilver/template/ajax.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index b2a27089f7..0b587ac561 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -54,7 +54,7 @@ phpbb.addAjaxCallback('mark_forums_read', function(res) { * @param update_topic_links bool Wether "Mark topics read" links should be * 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 unreadTitle = res.UNREAD_POSTS; var iconsArray = { @@ -68,6 +68,10 @@ phpbb.addAjaxCallback('mark_topics_read', function(res, update_topic_links = tru var classMap = {}; var classNames = []; + if (typeof update_topic_links === 'undefined') { + update_topic_links = true; + } + $.each(iconsArray, function(unreadClass, readClass) { $.each(iconsState, function(key, value) { // Only topics can be hot |