Fix the ability to save changes made to an image.

props markoheijnen.
fixes #26000.

git-svn-id: https://develop.svn.wordpress.org/trunk@26425 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-11-26 23:30:59 +00:00
parent c294a6bd3e
commit 60a28aa61a
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ var imageEdit = window.imageEdit = {
callback();
}
if ( $('#imgedit-history-' + postid).val() && $('#imgedit-undone-' + postid).val() === 0 ) {
if ( $('#imgedit-history-' + postid).val() && $('#imgedit-undone-' + postid).val() === '0' ) {
$('input.imgedit-submit-btn', '#imgedit-panel-' + postid).removeAttr('disabled');
} else {
$('input.imgedit-submit-btn', '#imgedit-panel-' + postid).prop('disabled', true);