parent
5ff081d683
commit
db22945f1e
|
@ -46,6 +46,15 @@ class Zend_View_Helper_MainDetail extends Zend_View_Helper_Abstract
|
|||
{{MAIN_CONTENT}}
|
||||
</div>
|
||||
|
||||
<p id="icingadetailClose" align="right" class="hidden">
|
||||
<a
|
||||
rel="tooltip"
|
||||
title="Close"
|
||||
class="button btn-common btn-small"
|
||||
>
|
||||
<i class="icinga-icon-remove"></i>
|
||||
</a>
|
||||
</p>
|
||||
<div id='icingadetail' class='{{DETAIL_CLASS}}'>
|
||||
{{DETAIL_CONTENT}}
|
||||
</div>
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue