From bc44aeac4b0e9ead1b026cfab2e2fbc1ed055a36 Mon Sep 17 00:00:00 2001 From: Moritz Schmidt Date: Wed, 1 Oct 2014 08:14:48 +0200 Subject: [PATCH] fix 403 handling in ajaxify.js Fix typo from dedf7a671535b69e768c8a27eaaa8ba0cd03eac1 --- public/src/ajaxify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 380ddd2927..99c036d425 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -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() { }); }); -}); \ No newline at end of file +});