parseAjaxResponse fix from mdawaffe. fixes #6326
git-svn-id: http://svn.automattic.com/wordpress/trunk@7436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b3a9ed91e7
commit
1ec1d3902d
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue