error => fail

This commit is contained in:
Gina Häußge committed 2018-06-20 16:31:13 +02:00
1 parent 58d8deefcd
commit 1de58b7be1
1 file changed
+1 -1
@@ -179,7 +179,7 @@ $(function() {
new PNotify({title: gettext("Logout successful"), text: gettext("You are now logged out"), type: "success"});
self.fromResponse(response);
})
.error(function(error) {
.fail(function(error) {
if (error && error.status === 401) {
self.fromResponse(false);
}