mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/10954] Change currentObject to $this for consistency
PHPBB3-10954
This commit is contained in:
parent
46cc204523
commit
ec0241d2ef
1 changed files with 8 additions and 8 deletions
|
@ -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() {
|
$('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) {
|
$.each(iconsArray, function(unreadClass, readClass) {
|
||||||
if (currentObject.hasClass(unreadClass)) {
|
if ($this.hasClass(unreadClass)) {
|
||||||
currentObject.removeClass(unreadClass).addClass(readClass);
|
$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
|
// Update mark forums read links
|
||||||
|
@ -72,13 +72,13 @@ phpbb.add_ajax_callback('mark_topics_read', function(res) {
|
||||||
unreadClassSelectors = '.' + classNames.join(',.');
|
unreadClassSelectors = '.' + classNames.join(',.');
|
||||||
|
|
||||||
$('li.row').find(unreadClassSelectors).each(function() {
|
$('li.row').find(unreadClassSelectors).each(function() {
|
||||||
var currentObject = $(this);
|
var $this = $(this);
|
||||||
$.each(classArray, function(unreadClass, readClass) {
|
$.each(classArray, function(unreadClass, readClass) {
|
||||||
if (currentObject.hasClass(unreadClass)) {
|
if ($this.hasClass(unreadClass)) {
|
||||||
currentObject.removeClass(unreadClass).addClass(readClass);
|
$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
|
// Remove link to first unread post
|
||||||
|
|
Loading…
Add table
Reference in a new issue