- t.toggleEditor(postid, 0);
- }).error(function(){
- $('#imgedit-crop-' + postid).empty().append('<div class="error"><p>' + imageEditL10n.error + '</p></div>');
- t.toggleEditor(postid, 0);
- }).attr('src', ajaxurl + '?' + $.param(data));
+ t.toggleEditor(postid, 0);
+ })
+ .on('error', function() {
+ $('#imgedit-crop-' + postid).empty().append('<div class="error"><p>' + imageEditL10n.error + '</p></div>');
+ t.toggleEditor(postid, 0);
+ })
+ .attr('src', ajaxurl + '?' + $.param(data));