From c46f13f8a0de0e37516ffaf4cb8d0ddbd086365c Mon Sep 17 00:00:00 2001 From: yyjdelete Date: Tue, 18 Feb 2014 10:10:49 +0800 Subject: [PATCH] Fix issue #192 --- themes/default/assets/js/apidocs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/default/assets/js/apidocs.js b/themes/default/assets/js/apidocs.js index c64bb463..e00591c1 100644 --- a/themes/default/assets/js/apidocs.js +++ b/themes/default/assets/js/apidocs.js @@ -284,7 +284,7 @@ pjax.handleClasses = function (req, res, next) { var status = res.ioResponse.status; // Handles success and local filesystem XHRs. - if (!status || (status >= 200 && status < 300)) { + if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) { pjax.initClassTabView(); } @@ -295,7 +295,7 @@ pjax.handleFiles = function (req, res, next) { var status = res.ioResponse.status; // Handles success and local filesystem XHRs. - if (!status || (status >= 200 && status < 300)) { + if (res.ioResponse.readyState === 4 && (!status || (status >= 200 && status < 300))) { pjax.initLineNumbers(); }