Eric Lippmann 875d42c0a6 Revert "Merge branch 'bugfix/always-use-the-jquery-find-method-w/-node-context-10704'"
This reverts commit f517c62fdec880d5b905212ef4dbfe23a5cd033e, reversing
changes made to d1fd7e4be78f3dda9734027dda53114b71a7a46d.

refs #10704
2016-11-21 14:34:58 +01:00

31 lines
745 B
JavaScript

/*! Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
(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));