mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 15:24:05 +02:00
parent
5ff081d683
commit
db22945f1e
@ -46,6 +46,15 @@ class Zend_View_Helper_MainDetail extends Zend_View_Helper_Abstract
|
|||||||
{{MAIN_CONTENT}}
|
{{MAIN_CONTENT}}
|
||||||
</div>
|
</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}}'>
|
<div id='icingadetail' class='{{DETAIL_CLASS}}'>
|
||||||
{{DETAIL_CONTENT}}
|
{{DETAIL_CONTENT}}
|
||||||
</div>
|
</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
|
* Available as a static method on the Container object or as an instance method
|
||||||
*/
|
*/
|
||||||
Container.prototype.showDetail = Container.showDetail = function() {
|
Container.prototype.showDetail = Container.showDetail = function() {
|
||||||
|
$('#icingadetailClose').removeClass('hidden');
|
||||||
var mainDom = Container.getMainContainer().containerDom,
|
var mainDom = Container.getMainContainer().containerDom,
|
||||||
detailDom = Container.getDetailContainer().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
|
* Available as a static method on the Container object or as an instance method
|
||||||
*/
|
*/
|
||||||
Container.prototype.hideDetail = Container.hideDetail = function() {
|
Container.prototype.hideDetail = Container.hideDetail = function() {
|
||||||
|
$('#icingadetailClose').addClass('hidden');
|
||||||
cancelPendingRequest();
|
cancelPendingRequest();
|
||||||
urlMgr.setDetailUrl('');
|
urlMgr.setDetailUrl('');
|
||||||
var mainDom = Container.getMainContainer().containerDom,
|
var mainDom = Container.getMainContainer().containerDom,
|
||||||
@ -491,5 +493,9 @@ define(['jquery', 'logging', 'icinga/componentLoader', 'URIjs/URI', 'URIjs/URITe
|
|||||||
Container.getDetailContainer().replaceDomAsync(urlMgr.detailUrl);
|
Container.getDetailContainer().replaceDomAsync(urlMgr.detailUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('#icingadetailClose').click(function(){
|
||||||
|
detailContainer.hideDetail();
|
||||||
|
});
|
||||||
|
|
||||||
return Container;
|
return Container;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user