[livejournal] r19572: LJSUP-9371: JS error when try to stop up...
Committer: szhirkov
LJSUP-9371: JS error when try to stop upload fileU 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-03 04:19:41 UTC (rev 19571)
+++ branches/fotki/htdocs/js/ck/plugins/livejournal/plugin.js 2011-08-03 04:30:34 UTC (rev 19572)
@@ -230,7 +230,7 @@
////////// LJ Image Button //////////////
editor.addCommand('LJImage', {
exec : function(editor){
- jQuery('body')
+ jQuery('#updateForm')
.photouploader({
type: 'upload'
})
Modified: branches/fotki/htdocs/js/entry.js
===================================================================
--- branches/fotki/htdocs/js/entry.js 2011-08-03 04:19:41 UTC (rev 19571)
+++ branches/fotki/htdocs/js/entry.js 2011-08-03 04:30:34 UTC (rev 19572)
@@ -963,7 +963,7 @@
InOb.handleInsertImage = function (){
// if PhotoHosting enabled - show new popup
if (window.ljphotoEnabled) {
- jQuery('body')
+ jQuery('#updateForm')
.photouploader('option', 'type', 'upload')
.bind('htmlready', function (event, htmlOutput) {
jQuery('#draft').val(jQuery('#draft').val() + htmlOutput);
