Committer: szhirkov
LJSUP-8714: New Photo-hosting (User Interface) - Client SideU branches/fotki/htdocs/js/ck/plugins/livejournal/plugin.js U branches/fotki/htdocs/js/entry.js
Modified: branches/fotki/htdocs/js/ck/plugins/livejournal/plugin.js =================================================================== --- branches/fotki/htdocs/js/ck/plugins/livejournal/plugin.js 2011-08-02 11:05:05 UTC (rev 19567) +++ branches/fotki/htdocs/js/ck/plugins/livejournal/plugin.js 2011-08-02 11:08:59 UTC (rev 19568) @@ -230,7 +230,7 @@ ////////// LJ Image Button ////////////// editor.addCommand('LJImage', { exec : function(editor){ - jQuery('#content') + jQuery('body') .photouploader({ type: 'upload' }) Modified: branches/fotki/htdocs/js/entry.js =================================================================== --- branches/fotki/htdocs/js/entry.js 2011-08-02 11:05:05 UTC (rev 19567) +++ branches/fotki/htdocs/js/entry.js 2011-08-02 11:08:59 UTC (rev 19568) @@ -963,7 +963,7 @@ InOb.handleInsertImage = function (){ // if PhotoHosting enabled - show new popup if (window.ljphotoEnabled) { - jQuery('#content') + jQuery('body') .photouploader('option', 'type', 'upload') .bind('htmlready', function (event, htmlOutput) { jQuery('#draft').val(jQuery('#draft').val() + htmlOutput);