Ugly hack to ensure the modal backdrop is removed when changing views

Couldn't figure a way to make this generic
This commit is contained in:
Johannes
2016-11-21 13:22:56 +01:00
parent 67a87cd040
commit 3bcd255a07
10 changed files with 20 additions and 0 deletions

View File

@@ -241,4 +241,6 @@ angular.module('Application').controller('AccountController', ['$scope', 'Client
$(this).find("[autofocus]:first").focus();
});
});
$('.modal-backdrop').remove();
}]);

View File

@@ -62,4 +62,6 @@ angular.module('Application').controller('ActivityController', ['$scope', '$loca
Client.onReady(function () {
fetchEventLogs();
});
$('.modal-backdrop').remove();
}]);

View File

@@ -524,4 +524,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$(this).find("[autofocus]:first").focus();
});
});
$('.modal-backdrop').remove();
}]);

View File

@@ -582,4 +582,6 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
$(this).find("[autofocus]:first").focus();
});
});
$('.modal-backdrop').remove();
}]);

View File

@@ -198,4 +198,6 @@ angular.module('Application').controller('CertsController', ['$scope', '$locatio
$(this).find("[autofocus]:first").focus();
});
});
$('.modal-backdrop').remove();
}]);

View File

@@ -192,4 +192,6 @@ angular.module('Application').controller('GraphsController', ['$scope', '$locati
Client.onReady($scope.updateMemorySystemChart);
Client.onReady($scope.updateMemoryAppsChart);
Client.onReady($scope.setMemoryApp.bind(null, 'system'));
$('.modal-backdrop').remove();
}]);

View File

@@ -528,4 +528,6 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
$(this).find("[autofocus]:first").focus();
});
});
$('.modal-backdrop').remove();
}]);

View File

@@ -37,4 +37,6 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat
$scope.feedback.busy = false;
});
};
$('.modal-backdrop').remove();
}]);

View File

@@ -228,4 +228,6 @@ angular.module('Application').controller('TokensController', ['$scope', 'Client'
$(this).find("[autofocus]:first").focus();
});
});
$('.modal-backdrop').remove();
}]);

View File

@@ -440,4 +440,6 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
$(this).find("[autofocus]:first").focus();
});
});
$('.modal-backdrop').remove();
}]);