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

[livejournal] r19781: LJSV-1286i: Reposted entry contains wron...

Committer: vkurkin
LJSV-1286i: Reposted entry contains wrong video
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-19 06:44:59 UTC (rev 19780)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-08-19 07:03:20 UTC (rev 19781)
@@ -1070,7 +1070,10 @@
 						var fakeElement = new CKEDITOR.htmlParser.element('div');
 						fakeElement.attributes.contentEditable = 'false';
 						fakeElement.attributes['class'] = 'lj-embed';
-						fakeElement.attributes['embedid'] = element.attributes.id;
+						fakeElement.attributes.embedid = element.attributes.id;
+						if(element.attributes.hasOwnProperty('source_user')){
+							fakeElement.attributes.source_user = element.attributes.source_user;
+						}
 						fakeElement.children = element.children;
 
 						return fakeElement;
@@ -1198,6 +1201,9 @@
 							case 'lj-embed':
 								newElement = new CKEDITOR.htmlParser.element('lj-embed');
 								newElement.attributes.id = element.attributes.embedid;
+								if(element.attributes.hasOwnProperty('source_user')){
+									newElement.attributes.source_user = element.attributes.source_user;
+								}
 								newElement.children = element.children;
 							break;
 							case 'lj-map':

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