can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r19896: LJSV-1726: Image resizing issues in RTE

Committer: dpetrov
LJSV-1726: Image resizing issues in RTE
U   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-30 11:12:43 UTC (rev 19895)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-08-31 01:09:53 UTC (rev 19896)
@@ -465,16 +465,14 @@
 			//////////  LJ Image Button //////////////
 			editor.addCommand('LJImage', {
 				exec: function(editor) {
-					if (ljNoteData.LJImage.node) {
-						editor.openDialog('image');
-					} else if (window.ljphotoEnabled) {
+					if (window.ljphotoEnabled) {
 						jQuery('#updateForm').photouploader({
 							type: 'upload'
 						}).photouploader('show').bind('htmlready', function (event, html) {
 							editor.insertHtml(html);
 						});
 					} else {
-						InOb.handleInsertImage();
+						editor.openDialog('image');
 					}
 				},
 				editorFocus: false

Tags: can3p, 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