Skip to content

Commit

Permalink
Cancel in 'beforeSend' is checked by .status [closes #48]
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtech-dobes committed Feb 5, 2013
1 parent e15c736 commit 00c144b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nette.ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ var nette = function () {

xhr = $.ajax(settings);

if (xhr) {
if (xhr && xhr.status > 0) {
xhr.done(function (payload, status, xhr) {
inner.fire({
name: 'success',
Expand Down

0 comments on commit 00c144b

Please sign in to comment.