implemented last-forum-read-at
This commit is contained in:
@@ -5,6 +5,19 @@
|
||||
$("#c-forum-topics #preview").hide();
|
||||
|
||||
this.initialize_preview_link();
|
||||
this.initialize_last_forum_read_at();
|
||||
}
|
||||
|
||||
Danbooru.ForumPost.initialize_last_forum_read_at = function() {
|
||||
var last_forum_read_at = Date.parse(Danbooru.meta("last-forum-read-at"));
|
||||
|
||||
$("#c-forum-topics #a-index time").each(function(i, x) {
|
||||
var $x = $(x);
|
||||
var $date = Date.parse($x.attr("datetime"));
|
||||
if (Date.parse($x.attr("datetime")) > last_forum_read_at) {
|
||||
$x.closest("tr").addClass("new-topic");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Danbooru.ForumPost.initialize_preview_link = function() {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
/*= require "smoothness/jquery-ui-1.8.5.custom.css" */
|
||||
@import 'bourbon';
|
||||
|
||||
$link_color: #006FFA;
|
||||
$link_hover_color: #9093FF;
|
||||
@@ -897,6 +896,10 @@ div#c-forum-topics {
|
||||
color: #AAA;
|
||||
}
|
||||
|
||||
tr.new-topic {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div#form-content {
|
||||
float: left;
|
||||
width: 450px;
|
||||
|
||||
Reference in New Issue
Block a user