mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-11 01:20:21 -04:00
Add SPDX license headers and mark source files as GPL-3.0-or-later to preserve the option to relicense under later GPL versions.
31 lines
791 B
JavaScript
31 lines
791 B
JavaScript
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
(function(Icinga) {
|
|
|
|
var Doc = function(module) {
|
|
this.module = module;
|
|
this.initialize();
|
|
this.module.icinga.logger.debug('Doc module loaded');
|
|
};
|
|
|
|
Doc.prototype = {
|
|
|
|
initialize: function()
|
|
{
|
|
this.module.on('rendered', this.rendered);
|
|
this.module.icinga.logger.debug('Doc module initialized');
|
|
},
|
|
|
|
rendered: function(event) {
|
|
var $container = $(event.currentTarget);
|
|
if ($('> .content.styleguide', $container).length) {
|
|
$container.removeClass('module-doc');
|
|
}
|
|
}
|
|
};
|
|
|
|
Icinga.availableModules.doc = Doc;
|
|
|
|
}(Icinga));
|
|
|