diff --git a/application/views/helpers/MainDetail.php b/application/views/helpers/MainDetail.php index 398e93352..28c021381 100644 --- a/application/views/helpers/MainDetail.php +++ b/application/views/helpers/MainDetail.php @@ -46,6 +46,15 @@ class Zend_View_Helper_MainDetail extends Zend_View_Helper_Abstract {{MAIN_CONTENT}} +
{{DETAIL_CONTENT}}
diff --git a/public/js/icinga/components/container.js b/public/js/icinga/components/container.js index 4f326359c..c10997099 100644 --- a/public/js/icinga/components/container.js +++ b/public/js/icinga/components/container.js @@ -411,6 +411,7 @@ define(['jquery', 'logging', 'icinga/componentLoader', 'URIjs/URI', 'URIjs/URITe * Available as a static method on the Container object or as an instance method */ Container.prototype.showDetail = Container.showDetail = function() { + $('#icingadetailClose').removeClass('hidden'); var mainDom = Container.getMainContainer().containerDom, detailDom = Container.getDetailContainer().containerDom; @@ -435,6 +436,7 @@ define(['jquery', 'logging', 'icinga/componentLoader', 'URIjs/URI', 'URIjs/URITe * Available as a static method on the Container object or as an instance method */ Container.prototype.hideDetail = Container.hideDetail = function() { + $('#icingadetailClose').addClass('hidden'); cancelPendingRequest(); urlMgr.setDetailUrl(''); var mainDom = Container.getMainContainer().containerDom, @@ -491,5 +493,9 @@ define(['jquery', 'logging', 'icinga/componentLoader', 'URIjs/URI', 'URIjs/URITe Container.getDetailContainer().replaceDomAsync(urlMgr.detailUrl); } + $('#icingadetailClose').click(function(){ + detailContainer.hideDetail(); + }); + return Container; });