diff --git a/web/assets/javascripts/dashboard.js b/web/assets/javascripts/dashboard.js index 72fc4d786..cb297cda7 100644 --- a/web/assets/javascripts/dashboard.js +++ b/web/assets/javascripts/dashboard.js @@ -227,14 +227,8 @@ var updateRedisStats = function(data) { } var pulseBeacon = function(){ - $beacon = $('.beacon') - $beacon.find('.dot').addClass('pulse').delay(1000).queue(function(){ - $(this).removeClass('pulse'); - $(this).dequeue(); - }); - $beacon.find('.ring').addClass('pulse').delay(1000).queue(function(){ - $(this).removeClass('pulse'); - $(this).dequeue(); + $('.beacon').addClass('pulse').delay(1000).queue(function(){ + $(this).removeClass('pulse').dequeue(); }); } diff --git a/web/assets/stylesheets/application.css b/web/assets/stylesheets/application.css index bef31df08..a832143c3 100755 --- a/web/assets/stylesheets/application.css +++ b/web/assets/stylesheets/application.css @@ -496,7 +496,7 @@ div.interval-slider input { z-index: 10; } -.beacon .dot.pulse { +.beacon.pulse .dot { -webkit-animation: beacon-dot-pulse 1s ease-out; -moz-animation: beacon-dot-pulse 1s ease-out; animation: beacon-dot-pulse 1s ease-out; @@ -557,7 +557,7 @@ div.interval-slider input { opacity: 0; } -.beacon .ring.pulse { +.beacon.pulse .ring { -webkit-animation: beacon-ring-pulse 1s; -moz-animation: beacon-ring-pulse 1s; animation: beacon-ring-pulse 1s;