/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */ // @TODO(el): https://dev.icinga.org/issues/10646 (function(Icinga, $) { 'use strict'; Icinga.Behaviors = Icinga.Behaviors || {}; var ApplicationState = function (icinga) { Icinga.EventListener.call(this, icinga); this.on('rendered', this.onRendered, this); this.icinga = icinga; }; ApplicationState.prototype = new Icinga.EventListener(); ApplicationState.prototype.onRendered = function(e) { var _this = e.data.self; if (! $('#application-state').length) { $('#layout').append( '' ); } }; Icinga.Behaviors.ApplicationState = ApplicationState; })(Icinga, jQuery);