mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +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.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
|
// Update mark forums read links
|
||||||
$('[data-ajax=mark_forums_read]').each(function() {
|
$('[data-ajax="mark_forums_read"]').attr('href', res.U_MARK_FORUMS);
|
||||||
$(this).attr('href', res.U_MARK_FORUMS);
|
|
||||||
});
|
|
||||||
|
|
||||||
phpbb.closeDarkenWrapper();
|
phpbb.closeDarkenWrapper();
|
||||||
});
|
});
|
||||||
@ -78,18 +76,14 @@ phpbb.add_ajax_callback('mark_topics_read', function(res) {
|
|||||||
$this.removeClass(unreadClass).addClass(readClass);
|
$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
|
// Remove link to first unread post
|
||||||
$('span.icon_topic_newest').each(function() {
|
$('span.icon_topic_newest').remove();
|
||||||
$(this).remove();
|
|
||||||
});
|
|
||||||
|
|
||||||
// Update mark topics read links
|
// Update mark topics read links
|
||||||
$('[data-ajax=mark_topics_read]').each(function() {
|
$('[data-ajax="mark_topics_read"]').attr('href', res.U_MARK_TOPICS);
|
||||||
$(this).attr('href', res.U_MARK_TOPICS);
|
|
||||||
});
|
|
||||||
|
|
||||||
phpbb.closeDarkenWrapper();
|
phpbb.closeDarkenWrapper();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user