Skip to content

Commit

Permalink
All 2xx ajax response status codes are successful now (fixed #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Krupko committed Jul 15, 2016
1 parent 5b6715a commit 7278aff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/ExtendedJS.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @copyright 2016 Avrora Team www.avrora.team
* @license MIT
* @tutorial http://extendedjs.avrora.team
* @version 1.0.3
* @version 1.0.4
*/

!function()
Expand Down Expand Up @@ -772,7 +772,7 @@
var response = xhr.responseText;
status = 'error';

if (xhr.status === 200) {
if (xhr.status >= 200 && xhr.status < 300) {
status = 'success';

if (P.dataType.toLowerCase() === 'json') {
Expand Down
Loading

0 comments on commit 7278aff

Please sign in to comment.