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:
Gina Häußge 2017-06-30 09:43:58 +02:00
parent ac3f4d598c
commit 697df4f3ce

View file

@ -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();
};
}