Image Editor: fix JS prompt, add size to 'load_image_to_edit' filter, see #10528

git-svn-id: http://svn.automattic.com/wordpress/trunk@11967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2009-09-24 08:47:33 +00:00
parent c664315b01
commit 33836d522b
3 changed files with 8 additions and 6 deletions

View File

@@ -355,10 +355,12 @@ imageEdit = {
$('#imgedit-selection-' + postid).val( JSON.stringify(sel) );
},
close : function(postid) {
if ( this.notsaved(postid) )
close : function(postid, warn) {
warn = warn || false;
if ( warn && this.notsaved(postid) )
return false;
this.iasapi = {};
this.hold = {};
$('#image-editor-' + postid).fadeOut('fast', function() {