mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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…
x
Reference in New Issue
Block a user