From c21eeff6057a50230b4ba3574ba19757995b3546 Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 9 Oct 2016 02:02:13 +0200 Subject: [PATCH] local-time.js: relative time by default --- js/local-time.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/local-time.js b/js/local-time.js index a821579f..c3c47b8d 100644 --- a/js/local-time.js +++ b/js/local-time.js @@ -89,7 +89,7 @@ $(document).ready(function(){ Options.extend_tab('general', ''); $('#show-relative-time>input').on('change', function() { - if (localStorage.show_relative_time === 'true') { + if (localStorage.show_relative_time !== 'false') { localStorage.show_relative_time = 'false'; clearInterval(interval_id); } else { @@ -100,7 +100,7 @@ $(document).ready(function(){ do_localtime(document); }); - if (localStorage.show_relative_time === 'true') { + if (localStorage.show_relative_time !== 'false') { $('#show-relative-time>input').attr('checked','checked'); interval_id = setInterval(do_localtime, 30000, document); }