Prepare close-container for behavior implementation

refs #8590
This commit is contained in:
Florian Strohmaier 2016-02-17 16:42:11 +01:00 committed by Eric Lippmann
parent e4a0678df0
commit 0c34c20640
2 changed files with 1 additions and 17 deletions

View File

@ -89,12 +89,6 @@
if ($searchField.length && $searchField.val().length) {
self.searchValue = $searchField.val();
}
if (icinga.ui.isOneColLayout()) {
icinga.ui.disableCloseButtons();
} else {
icinga.ui.enableCloseButtons();
}
},
/**

View File

@ -269,8 +269,6 @@
this.icinga.logger.debug('Switching to single col');
$('#layout').removeClass('twocols');
this.closeContainer($('#col2'));
this.disableCloseButtons();
// one-column layouts never have any selection active
this.icinga.behaviors.actiontable.clearAll();
},
@ -281,6 +279,7 @@
$c.removeData('lastUpdate');
$c.removeData('icingaModule');
this.icinga.loader.stopPendingRequestsFor($c);
$c.trigger('close-column');
$c.html('');
this.fixControls();
},
@ -290,7 +289,6 @@
this.icinga.logger.debug('Switching to double col');
$('#layout').addClass('twocols');
this.fixControls();
this.enableCloseButtons();
},
getAvailableColumnSpace: function () {
@ -508,14 +506,6 @@
}
},
disableCloseButtons: function () {
$('a.close-container-control').hide();
},
enableCloseButtons: function () {
$('a.close-close-container-control').show();
},
/**
* Toggle mobile menu
*