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

[livejournal] r20678: LJSUP-10627: Edit entry. Code of entry i...

Committer: vkurkin
LJSUP-10627: Edit entry. Code of entry is not displayed on editjournal.bml page
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-12-02 11:26:16 UTC (rev 20677)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-12-02 11:37:12 UTC (rev 20678)
@@ -1338,7 +1338,7 @@
 						}
 					},
 					img: function(element) {
-						var parent = element.parent.parent;
+						var parent = element.parent && element.parent.parent;
 						if (!parent || !parent.attributes || !parent.attributes['lj:user']) {
 							element.attributes['lj-cmd'] = 'image';
 						}

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