diff --git a/public/js/icinga/behavior/sparkline.js b/public/js/icinga/behavior/sparkline.js index af1aba065..80362aaef 100644 --- a/public/js/icinga/behavior/sparkline.js +++ b/public/js/icinga/behavior/sparkline.js @@ -15,17 +15,13 @@ Sparkline.prototype.onRendered = function(e) { $(e.target).find('.sparkline').each(function() { - setTimeout(sparkline, 0, $(this)); + $(this).sparkline('html', { + enableTagOptions: true, + disableTooltips: true + }); }); }; Icinga.Behaviors.Sparkline = Sparkline; - function sparkline(selector) { - selector.sparkline('html', { - enableTagOptions: true, - disableTooltips: true - }); - } - })(Icinga, jQuery);