js: Drop sparkline lib and behavior

This commit is contained in:
Johannes Meyer 2020-09-28 16:39:54 +02:00
parent e5af1684a0
commit 37fb455977
4 changed files with 1 additions and 3089 deletions

View File

@ -27,7 +27,6 @@ class JavaScript
'js/icinga/behavior/autofocus.js',
'js/icinga/behavior/collapsible.js',
'js/icinga/behavior/detach.js',
'js/icinga/behavior/sparkline.js',
'js/icinga/behavior/dropdown.js',
'js/icinga/behavior/navigation.js',
'js/icinga/behavior/form.js',
@ -41,8 +40,7 @@ class JavaScript
protected static $vendorFiles = array(
'js/vendor/jquery-3.4.1',
'js/vendor/jquery-migrate-3.1.0',
'js/vendor/jquery.sparkline'
'js/vendor/jquery-migrate-3.1.0'
);
public static function sendMinified()

View File

@ -1,27 +0,0 @@
/*! 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);

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long