diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:29:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:29:17 +0000 |
commit | c22a2c3ebc334fd7a891370e43a841d914893d47 (patch) | |
tree | 8a2c06166a1025a97cad914e1ce9da2bc78d646c /public/js/module.js | |
parent | Releasing progress-linux version 0.10.0-2~progress7.99u1. (diff) | |
download | icingaweb2-module-reporting-c22a2c3ebc334fd7a891370e43a841d914893d47.tar.xz icingaweb2-module-reporting-c22a2c3ebc334fd7a891370e43a841d914893d47.zip |
Merging upstream version 1.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | public/js/module.js | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/public/js/module.js b/public/js/module.js deleted file mode 100644 index f65a2d9..0000000 --- a/public/js/module.js +++ /dev/null @@ -1,50 +0,0 @@ -// Icinga Reporting | (c) 2018 Icinga GmbH | GPLv2 - -;(function (Icinga) { - - 'use strict'; - - var Reporting = function(module) { - this.module = module; - - this.initialize(); - }; - - Reporting.prototype.initialize = function () { - if (typeof $().flatpickr === 'function') { - this.module.on('rendered', function (event) { - var $container = $('<div>'); - event.target.insertAdjacentElement('beforeend', $container[0]); - $('[data-use-flatpickr-fallback]').each(function() { - var options = { - appendTo: $container[0], - dateFormat: 'Y-m-d H:i:S', - enableTime: true, - enableSeconds: true - }; - - for (name in this.dataset) { - if (name.length > 9 && name.substr(0, 9) === 'flatpickr') { - var value = this.dataset[name]; - if (value === '') { - value = true; - } - - options[name.charAt(9).toLowerCase() + name.substr(10)] = value; - } - } - - var element = this; - if (!! options.wrap) { - element = this.parentNode; - } - - $(element).flatpickr(options); - }); - }); - } - }; - - Icinga.availableModules.reporting = Reporting; - -}(Icinga)); |