mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 07:35:29 +02:00
[ticket/10954] Use quotes in attribute selectors and reduce use of each
PHPBB3-10954
This commit is contained in:
parent
ec0241d2ef
commit
703b77cb77
@ -29,13 +29,11 @@ phpbb.add_ajax_callback('mark_forums_read', function(res) {
|
||||
$this.removeClass(unreadClass).addClass(readClass);
|
||||
}
|
||||
});
|
||||
$this.children('dt[title=' + unreadTitle + ']').attr('title', readTitle);
|
||||
$this.children('dt[title="' + unreadTitle + '"]').attr('title', readTitle);
|
||||
});
|
||||
|
||||
// Update mark forums read links
|
||||
$('[data-ajax=mark_forums_read]').each(function() {
|
||||
$(this).attr('href', res.U_MARK_FORUMS);
|
||||
});
|
||||
$('[data-ajax="mark_forums_read"]').attr('href', res.U_MARK_FORUMS);
|
||||
|
||||
phpbb.closeDarkenWrapper();
|
||||
});
|
||||
@ -78,18 +76,14 @@ phpbb.add_ajax_callback('mark_topics_read', function(res) {
|
||||
$this.removeClass(unreadClass).addClass(readClass);
|
||||
}
|
||||
});
|
||||
$this.children('dt[title=' + unreadTitle + ']').attr('title', readTitle);
|
||||
$this.children('dt[title="' + unreadTitle + '"]').attr('title', readTitle);
|
||||
});
|
||||
|
||||
// Remove link to first unread post
|
||||
$('span.icon_topic_newest').each(function() {
|
||||
$(this).remove();
|
||||
});
|
||||
$('span.icon_topic_newest').remove();
|
||||
|
||||
// Update mark topics read links
|
||||
$('[data-ajax=mark_topics_read]').each(function() {
|
||||
$(this).attr('href', res.U_MARK_TOPICS);
|
||||
});
|
||||
$('[data-ajax="mark_topics_read"]').attr('href', res.U_MARK_TOPICS);
|
||||
|
||||
phpbb.closeDarkenWrapper();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user