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:
parent
aa25d1176a
commit
4ad615a813
@ -46,8 +46,8 @@ wpAjax = jQuery.extend( {
|
|||||||
}
|
}
|
||||||
if ( isNaN(x) ) { return !re.html('<div class="error"><p>' + x + '</p></div>'); }
|
if ( isNaN(x) ) { return !re.html('<div class="error"><p>' + x + '</p></div>'); }
|
||||||
x = parseInt(x,10);
|
x = parseInt(x,10);
|
||||||
if ( -1 == x ) { return !re.html('<div class="error"><p>' + this.noPerm + '</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>' + this.broken + '</p></div>'); }
|
else if ( 0 === x ) { return !re.html('<div class="error"><p>' + wpAjax.broken + '</p></div>'); }
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
invalidateForm: function ( selector ) {
|
invalidateForm: function ( selector ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user