Merge branch 'bugfix/sparkline-charts-flickering-3344'

fixes #3344
This commit is contained in:
Alexander A. Klimov 2018-04-06 09:44:32 +02:00
commit a187966277
1 changed files with 4 additions and 8 deletions

View File

@ -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);