Aralot (aralot) wrote in changelog,
Aralot
aralot
changelog

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

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

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