From b822e8babcddfa8b176a8e0bc7a1b7f7692cd8f4 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 26 Jun 2014 11:25:21 -0400 Subject: [PATCH] render preview on image upload --- public/src/modules/composer/uploads.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/modules/composer/uploads.js b/public/src/modules/composer/uploads.js index b51c02a985..ac601a25ce 100644 --- a/public/src/modules/composer/uploads.js +++ b/public/src/modules/composer/uploads.js @@ -2,7 +2,7 @@ /* globals define, utils, config, app */ -define('composer/uploads', function() { +define('composer/uploads', ['composer/preview'], function(preview) { var uploads = { inProgress: {} }; @@ -260,7 +260,7 @@ define('composer/uploads', function() { updateTextArea(uploads[i].name, uploads[i].url); } } - + preview.render(postContainer); textarea.focus(); },