And fixed connection accordion toggling again
#1001 said hi once more after fixing the onUserLogged(In|Out) events not firing...
This commit is contained in:
parent
ac3f4d598c
commit
697df4f3ce
1 changed files with 5 additions and 3 deletions
|
|
@ -81,8 +81,6 @@ $(function() {
|
|||
};
|
||||
|
||||
self.openOrCloseOnStateChange = function() {
|
||||
if (self._bound !== true) return;
|
||||
|
||||
var connectionTab = $("#connection");
|
||||
if (self.isOperational() && connectionTab.hasClass("in")) {
|
||||
connectionTab.collapse("hide");
|
||||
|
|
@ -136,7 +134,11 @@ $(function() {
|
|||
self.requestData();
|
||||
};
|
||||
|
||||
self.onAfterBinding = function() {
|
||||
self.onUserLoggedIn = function() {
|
||||
self.openOrCloseOnStateChange();
|
||||
};
|
||||
|
||||
self.onUserLoggedOut = function() {
|
||||
self.openOrCloseOnStateChange();
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue