Vlad Kurkin (b_vladi) wrote in changelog,
Vlad Kurkin
b_vladi
changelog

[livejournal] r19710: LJSUP-8974: RTE: Ability to add and disp...

Committer: vkurkin
LJSUP-8974: RTE: Ability to add and display lj-like buttons
U   trunk/htdocs/js/ck/plugins/livejournal/plugin.js
U   trunk/htdocs/js/rte.js
Modified: trunk/htdocs/js/ck/plugins/livejournal/plugin.js
===================================================================
--- trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-08-12 07:47:57 UTC (rev 19709)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-08-12 07:49:32 UTC (rev 19710)
@@ -90,7 +90,7 @@
 				var node = isMouseOver ? evt.data.getTarget() : editor.getSelection().getRanges()[0].startContainer;
 				var actNode;
 
-				if(node.type != 1){
+				if (node.type != 1) {
 					node = node.getParent();
 				}
 
@@ -462,7 +462,7 @@
 					if (ljNoteData.LJImage.node) {
 						editor.getSelection().selectElement(ljNoteData.LJImage.node);
 						editor.getCommand('image').exec();
-					} else if(window.ljphotoEnabled){
+					} else if (window.ljphotoEnabled) {
 						jQuery('#updateForm').photouploader({
 							type: 'upload'
 						}).photouploader('show').bind('htmlready', function (event, html) {
@@ -481,7 +481,7 @@
 					delete ljNoteData.LJImage.node;
 				}
 
-				if(!window.ljphotoEnabled){
+				if (!window.ljphotoEnabled) {
 					editor.getCommand('LJImage').setState(state);
 				}
 			});
@@ -697,7 +697,7 @@
 							{
 								id: 'LJPool_Setup',
 								label: 'Setup',
-								padding: 0, 
+								padding: 0,
 								elements: [
 									{
 										type: 'html',

Modified: trunk/htdocs/js/rte.js
===================================================================
--- trunk/htdocs/js/rte.js	2011-08-12 07:47:57 UTC (rev 19709)
+++ trunk/htdocs/js/rte.js	2011-08-12 07:49:32 UTC (rev 19710)
@@ -56,7 +56,7 @@
 						CKEditor.container.show();
 						CKEditor.element.hide();
 
-						if(draftData){
+						if (draftData) {
 							editor.on('dialogHide', checkDraftTimer);
 							editor.on('afterCommandExec', checkDraftTimer);
 							editor.on('insertElement', checkDraftTimer);
@@ -97,8 +97,8 @@
 				CKEditor.element.show();
 
 				// IE7 hack fix
-				if($.browser.msie && $.browser.version == '7.0'){
-					setTimeout(function(){
+				if ($.browser.msie && $.browser.version == '7.0') {
+					setTimeout(function() {
 						CKEditor.element.setValue(data);
 					}, 30);
 				} else {

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