Merge pull request #3288 from Icinga/bugfix/performance-problem-lots-of-performance-data-2894
Performance data: render pie charts without freezing the UI
This commit is contained in:
commit
0b9ae48530
|
@ -15,13 +15,17 @@
|
|||
|
||||
Sparkline.prototype.onRendered = function(e) {
|
||||
$(e.target).find('.sparkline').each(function() {
|
||||
$(this).sparkline('html', {
|
||||
enableTagOptions: true,
|
||||
disableTooltips: true
|
||||
});
|
||||
setTimeout(sparkline, 0, $(this));
|
||||
});
|
||||
};
|
||||
|
||||
Icinga.Behaviors.Sparkline = Sparkline;
|
||||
|
||||
function sparkline(selector) {
|
||||
selector.sparkline('html', {
|
||||
enableTagOptions: true,
|
||||
disableTooltips: true
|
||||
});
|
||||
}
|
||||
|
||||
})(Icinga, jQuery);
|
||||
|
|
Loading…
Reference in New Issue