Aralot (aralot) wrote in changelog,
Aralot
aralot
changelog

[livejournal] r19568: LJSUP-8714: New Photo-hosting (User Inte...

Committer: szhirkov
LJSUP-8714: New Photo-hosting (User Interface) - Client Side
U   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);

Tags: aralot, js, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments