Committer: szhirkov
LJSUP-8714: New Photo-hosting (User Interface) - Client SideU trunk/htdocs/js/ck/plugins/livejournal/plugin.js
Modified: trunk/htdocs/js/ck/plugins/livejournal/plugin.js =================================================================== --- trunk/htdocs/js/ck/plugins/livejournal/plugin.js 2011-08-09 08:51:49 UTC (rev 19663) +++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js 2011-08-09 09:13:37 UTC (rev 19664) @@ -480,7 +480,14 @@ editor.addCommand('LJImage', { exec : function(editor){ if(window.ljphotoEnabled){ - // call LJImage + jQuery('#updateForm') + .photouploader({ + type: 'upload' + }) + .photouploader('show') + .bind('htmlready', function (event, html) { + editor.insertHtml(html); + }); } else { if(ljNoteData.LJImage.node){ editor.getSelection().selectElement(ljNoteData.LJImage.node);