fix 403 handling in ajaxify.js

Fix typo from dedf7a6715
This commit is contained in:
Moritz Schmidt
2014-10-01 08:14:48 +02:00
parent 977cd98a79
commit bc44aeac4b

View File

@@ -35,7 +35,7 @@ $(document).ready(function() {
} else if (data.status === 401) {
app.alertError('[[global:please_log_in]]');
return ajaxify.go('login');
} else if (data.statuc === 403) {
} else if (data.status === 403) {
app.alertError('[[error:no-privileges]]');
} else if (data.status === 302) {
return ajaxify.go(data.responseJSON.slice(1), callback, quiet);
@@ -309,4 +309,4 @@ $(document).ready(function() {
});
});
});
});