mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +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) {
|
Sparkline.prototype.onRendered = function(e) {
|
||||||
$(e.target).find('.sparkline').each(function() {
|
$(e.target).find('.sparkline').each(function() {
|
||||||
$(this).sparkline('html', {
|
setTimeout(sparkline, 0, $(this));
|
||||||
enableTagOptions: true,
|
|
||||||
disableTooltips: true
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Icinga.Behaviors.Sparkline = Sparkline;
|
Icinga.Behaviors.Sparkline = Sparkline;
|
||||||
|
|
||||||
|
function sparkline(selector) {
|
||||||
|
selector.sparkline('html', {
|
||||||
|
enableTagOptions: true,
|
||||||
|
disableTooltips: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
})(Icinga, jQuery);
|
})(Icinga, jQuery);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user