aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/ajax.js
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-04-12 06:32:13 -0700
committerNils Adermann <naderman@naderman.de>2013-04-12 06:32:13 -0700
commitc25dfef770e440dec9f1d1eeb71e5ef8c3ffbb66 (patch)
treefbfbb9204d1c44ff381ff5c609a99fdc923cffc1 /phpBB/styles/prosilver/template/ajax.js
parent653666c76ef53028a6e06a71e6d39f327f988814 (diff)
parent34cdbd0360e756a5ef9646554905697f7ae1ba1f (diff)
downloadforums-c25dfef770e440dec9f1d1eeb71e5ef8c3ffbb66.tar
forums-c25dfef770e440dec9f1d1eeb71e5ef8c3ffbb66.tar.gz
forums-c25dfef770e440dec9f1d1eeb71e5ef8c3ffbb66.tar.bz2
forums-c25dfef770e440dec9f1d1eeb71e5ef8c3ffbb66.tar.xz
forums-c25dfef770e440dec9f1d1eeb71e5ef8c3ffbb66.zip
Merge pull request #1184 from marc1706/ticket/11314
[ticket/11314] Improve readability and code cleanup in new JavaScript files
Diffstat (limited to 'phpBB/styles/prosilver/template/ajax.js')
-rw-r--r--phpBB/styles/prosilver/template/ajax.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js
index 0b587ac561..8dd1f58c97 100644
--- a/phpBB/styles/prosilver/template/ajax.js
+++ b/phpBB/styles/prosilver/template/ajax.js
@@ -39,7 +39,7 @@ phpbb.addAjaxCallback('mark_forums_read', function(res) {
// Mark topics read if we are watching a category and showing active topics
if ($('#active_topics').length) {
- phpbb.ajaxCallbacks['mark_topics_read'].call(this, res, false);
+ phpbb.ajaxCallbacks.mark_topics_read.call(this, res, false);
}
// Update mark forums read links
@@ -75,7 +75,7 @@ phpbb.addAjaxCallback('mark_topics_read', function(res, update_topic_links) {
$.each(iconsArray, function(unreadClass, readClass) {
$.each(iconsState, function(key, value) {
// Only topics can be hot
- if ((value == '_hot' || value == '_hot_mine') && unreadClass != 'topic_unread') {
+ if ((value === '_hot' || value === '_hot_mine') && unreadClass !== 'topic_unread') {
return true;
}
classMap[unreadClass + value] = readClass + value;
@@ -217,7 +217,7 @@ $('#quick-mod-select').change(function () {
*/
$('#member_search').click(function () {
$('#memberlist_search').slideToggle('fast');
- phpbb.ajax_callbacks['alt_text'].call(this);
+ phpbb.ajax_callbacks.alt_text.call(this);
// Focus on the username textbox if it's available and displayed
if ($('#memberlist_search').is(':visible')) {
$('#username').focus();