Skip to content

Commit

Permalink
Fix issue #192
Browse files Browse the repository at this point in the history
  • Loading branch information
yyjdelete committed Feb 18, 2014
1 parent 0571909 commit c46f13f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/default/assets/js/apidocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand All @@ -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();
}

Expand Down

0 comments on commit c46f13f

Please sign in to comment.