Use .fail instead of .error
.error() was removed in jQuery 3 and is throwing errors when logging out, use .fail instead
This commit is contained in:
1 parent
75c801d63f
commit
8074a06d33
1 file changed
+1
-1
@@ -188,7 +188,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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user