render preview on image upload

v1.18.x
barisusakli 11 years ago
parent 67186edda7
commit b822e8babc

@ -2,7 +2,7 @@
/* globals define, utils, config, app */ /* globals define, utils, config, app */
define('composer/uploads', function() { define('composer/uploads', ['composer/preview'], function(preview) {
var uploads = { var uploads = {
inProgress: {} inProgress: {}
}; };
@ -260,7 +260,7 @@ define('composer/uploads', function() {
updateTextArea(uploads[i].name, uploads[i].url); updateTextArea(uploads[i].name, uploads[i].url);
} }
} }
preview.render(postContainer);
textarea.focus(); textarea.focus();
}, },

Loading…
Cancel
Save