From dbaaa0c40a7a96306185f9431b008a72bc153dd5 Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 10 Mar 2015 14:52:44 +0100 Subject: watch.js & slugify fix --- js/watch.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'js/watch.js') diff --git a/js/watch.js b/js/watch.js index a202130f..8ac026a7 100644 --- a/js/watch.js +++ b/js/watch.js @@ -98,6 +98,9 @@ $(function(){ else { bc.threads = bc.threads || {}; bc.threads[thread] = Date.now(); + + bc.slugs = bc.slugs || {}; + bc.slugs[thread] = document.location.pathname + document.location.search; } st[board] = bc; storage_save(st); @@ -121,7 +124,7 @@ $(function(){ var tag; if (variant == 'desktop') { - tag = $("#"+tid+""+newposts+""); + tag = $("#"+tid+""+newposts+""); tag.find(".watch-remove").mouseenter(function() { this.oldval = $(this).html(); $(this).css("min-width", $(this).width()); @@ -132,7 +135,7 @@ $(function(){ }) } else if (variant == 'mobile') { - tag = $("#"+tid+""+newposts+"" + tag = $("#"+tid+""+newposts+"" +""); } -- cgit v1.3 From 4131a6e5636df3afac7b0894994074cda6fa3b6b Mon Sep 17 00:00:00 2001 From: czaks Date: Sat, 11 Apr 2015 23:12:13 +0200 Subject: watch.js: slow down a little bit, let`s see how it works out --- js/watch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/watch.js') diff --git a/js/watch.js b/js/watch.js index 8ac026a7..07c6942a 100644 --- a/js/watch.js +++ b/js/watch.js @@ -248,7 +248,7 @@ $(function(){ var st = storage(); var sched = 0; - var sched_diff = 300; + var sched_diff = 2000; for (var i in st) { if (st[i].watched) { -- cgit v1.3