parseAjaxResponse fix from mdawaffe. fixes #6326

git-svn-id: https://develop.svn.wordpress.org/trunk@7436 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-21 03:03:38 +00:00
parent aa25d1176a
commit 4ad615a813
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ wpAjax = jQuery.extend( {
}
if ( isNaN(x) ) { return !re.html('<div class="error"><p>' + x + '</p></div>'); }
x = parseInt(x,10);
if ( -1 == x ) { return !re.html('<div class="error"><p>' + this.noPerm + '</p></div>'); }
else if ( 0 === x ) { return !re.html('<div class="error"><p>' + this.broken + '</p></div>'); }
if ( -1 == x ) { return !re.html('<div class="error"><p>' + wpAjax.noPerm + '</p></div>'); }
else if ( 0 === x ) { return !re.html('<div class="error"><p>' + wpAjax.broken + '</p></div>'); }
return true;
},
invalidateForm: function ( selector ) {