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:
1 parent
ac3f4d598c
commit
697df4f3ce
1 file changed
+5
-3
@@ -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();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user