From: Marius Gavrilescu Date: Sat, 28 Feb 2015 14:33:20 +0000 (+0200) Subject: Hide tracker when not tracking X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=7d5ec0ead7cfc7d234447ecc8f187deaf0ddb891;p=plack-app-gruntmaster.git Hide tracker when not tracking --- diff --git a/js/90-tracker.js b/js/90-tracker.js index 00312bd..50ba7d4 100644 --- a/js/90-tracker.js +++ b/js/90-tracker.js @@ -75,7 +75,6 @@ localStorage.setItem('tracker_username', user); $('#tracker_userlink').attr('href', '/us/' + user).html(user); $('#tracker_tracking').removeClass('hidden'); - $('#tracker_form').addClass('hidden'); update_tracker(); var lastfetch = localStorage.getItem('tracker_lastfetch'); if(Date.now() - lastfetch > 60 * 10 * 1000) @@ -102,12 +101,10 @@ localStorage.removeItem('tracker_data'); localStorage.removeItem('tracker_lastfetch'); $('#tracker_tracking').addClass('hidden'); - $('#tracker_form').removeClass('hidden'); } $( document ).ready(function(){ $('#tracker').detach().prependTo($('#sidebar')); - $('#tracker_button').on('click', function() { start_tracking($('#tracker_username').val()) }); $('#tracker_stop').on('click', stop_tracking); $('#track_user').on('click', function() { stop_tracking(); start_tracking($(this).data('user')) }); $('#submitform').on('submit', function() { localStorage.removeItem('tracker_lastfetch') }); diff --git a/tmpl/skel.en b/tmpl/skel.en index e6ac878..8987da7 100644 --- a/tmpl/skel.en +++ b/tmpl/skel.en @@ -42,16 +42,8 @@ Themes:
-

Track user

-
-
- - -
- -
-