From f355b0464b95916d5e670d2a359d6d6751566eb0 Mon Sep 17 00:00:00 2001 From: Phu Hoang Date: Thu, 20 Oct 2016 01:01:35 +0700 Subject: [PATCH] Fix ajax issue when admin url contains 'index.php' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the admin url contains `index.php` the ajax request to `'/admin/process/statusAjax’` will be failed. ![Ajax 404 Failed](http://image.prntscr.com/image/a071f7331e024d81bef3f3695fe7b885. png) --- js/hackathon_indexerstats/index_progress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/hackathon_indexerstats/index_progress.js b/js/hackathon_indexerstats/index_progress.js index a1bccfc..638986a 100644 --- a/js/hackathon_indexerstats/index_progress.js +++ b/js/hackathon_indexerstats/index_progress.js @@ -60,7 +60,7 @@ IndexerStats.Status.prototype = { update : function() { if (this.isUpdating) return; this.isUpdating = true; - new Ajax.Request('/admin/process/statusAjax', { + new Ajax.Request(window.location.href.replace('/process/list','/process/statusAjax'), { loaderArea : false, onSuccess : this.onSuccess.bind(this), onFailure : this.onFailure.bind(this)