Alexander A. Klimov 38438449e4 Revert "Performance data: render pie charts without freezing the UI"
This reverts commit f2b2b6a91aacc312372892fd9e88e725d1abfbfe.

refs #3344
2018-04-06 09:36:24 +02:00

28 lines
687 B
JavaScript

/*! Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
(function(Icinga, $) {
'use strict';
Icinga.Behaviors = Icinga.Behaviors || {};
var Sparkline = function (icinga) {
Icinga.EventListener.call(this, icinga);
this.on('rendered', this.onRendered, this);
};
Sparkline.prototype = new Icinga.EventListener();
Sparkline.prototype.onRendered = function(e) {
$(e.target).find('.sparkline').each(function() {
$(this).sparkline('html', {
enableTagOptions: true,
disableTooltips: true
});
});
};
Icinga.Behaviors.Sparkline = Sparkline;
})(Icinga, jQuery);