From 06e83cc5f6bb64fcf74aa8eb975c43c95cb9baa4 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 16 Nov 2013 15:42:11 +0100 Subject: [PATCH] Fix relative index refresh date on Firefox. --- src/General/Index.coffee | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 0df36998e..ca4ec0c0b 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -224,10 +224,15 @@ Index = setTimeout notice.close, $.SECOND timeEl = $ '#index-last-refresh', Index.navLinks - timeEl.dataset.utc = e.timeStamp + timeEl.dataset.utc = e.timeStamp <% if (type === 'userscript') { %>/ 1000<% } %> if timeEl.dataset.init RelativeDates.setUpdate el: timeEl + <% if (type === 'userscript') { %> + # XXX https://github.com/greasemonkey/greasemonkey/issues/1571 + timeEl.removeAttribute 'data-init' + <% } else { %> delete timeEl.dataset.init + <% } %> else RelativeDates.flush() Index.scrollToIndex()