From f96f6d9e2e8fd8a503a19820e334c23bd1a3113b Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 2 Apr 2015 01:27:11 -0400 Subject: [PATCH] shorter --- public/src/ajaxify.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 57defca278..515ce037af 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -31,9 +31,7 @@ $(document).ready(function() { ajaxify.currentPage = null; ajaxify.go = function (url, callback, quiet) { - if (ajaxify.handleACPRedirect(url)) { - return true; - } else if (ajaxify.handleNonAPIRoutes(url)) { + if (ajaxify.handleACPRedirect(url) || ajaxify.handleNonAPIRoutes(url)) { return true; }