diff options
author | Marc Alexander <admin@m-a-styles.de> | 2012-12-16 00:59:12 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2012-12-16 00:59:12 +0100 |
commit | ec0241d2ef178115a2ffdea7fedebbea0a9cf610 (patch) | |
tree | e3b03e2098350df8a886ddca252f21b0f306ca69 /phpBB | |
parent | 46cc20452350a6ec8c02459216ff67e80be193d6 (diff) | |
download | forums-ec0241d2ef178115a2ffdea7fedebbea0a9cf610.tar forums-ec0241d2ef178115a2ffdea7fedebbea0a9cf610.tar.gz forums-ec0241d2ef178115a2ffdea7fedebbea0a9cf610.tar.bz2 forums-ec0241d2ef178115a2ffdea7fedebbea0a9cf610.tar.xz forums-ec0241d2ef178115a2ffdea7fedebbea0a9cf610.zip |
[ticket/10954] Change currentObject to $this for consistency
PHPBB3-10954
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/styles/prosilver/template/ajax.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index faf3e59998..4e52884a29 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -22,14 +22,14 @@ phpbb.add_ajax_callback('mark_forums_read', function(res) { }; $('li.row').find('dl.forum_unread, dl.forum_unread_subforum, dl.forum_unread_locked').each(function() { - var currentObject = $(this); + var $this = $(this); $.each(iconsArray, function(unreadClass, readClass) { - if (currentObject.hasClass(unreadClass)) { - currentObject.removeClass(unreadClass).addClass(readClass); + if ($this.hasClass(unreadClass)) { + $this.removeClass(unreadClass).addClass(readClass); } }); - currentObject.children('dt[title=' + unreadTitle + ']').attr('title', readTitle); + $this.children('dt[title=' + unreadTitle + ']').attr('title', readTitle); }); // Update mark forums read links @@ -72,13 +72,13 @@ phpbb.add_ajax_callback('mark_topics_read', function(res) { unreadClassSelectors = '.' + classNames.join(',.'); $('li.row').find(unreadClassSelectors).each(function() { - var currentObject = $(this); + var $this = $(this); $.each(classArray, function(unreadClass, readClass) { - if (currentObject.hasClass(unreadClass)) { - currentObject.removeClass(unreadClass).addClass(readClass); + if ($this.hasClass(unreadClass)) { + $this.removeClass(unreadClass).addClass(readClass); } }); - currentObject.children('dt[title=' + unreadTitle + ']').attr('title', readTitle); + $this.children('dt[title=' + unreadTitle + ']').attr('title', readTitle); }); // Remove link to first unread post |