Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22620: LJSUP-13085: RTE - edit image dialog

Committer: anazarov
LJSUP-13085: RTE - edit image dialog
U   trunk/bin/upgrading/en.dat
U   trunk/htdocs/js/ck/plugins/livejournal/plugin.js
Modified: trunk/bin/upgrading/en.dat
===================================================================
--- trunk/bin/upgrading/en.dat	2012-08-10 13:05:59 UTC (rev 22619)
+++ trunk/bin/upgrading/en.dat	2012-08-10 13:32:15 UTC (rev 22620)
@@ -5994,6 +5994,8 @@
 
 talk.error.deleted.title=Deleted
 
+talk.error.image.loading=Image source URL is missing
+
 talk.error.invalidusejournal=No such journal or community
 
 talk.error.mustlogin=You must be logged in to view this protected entry.

Modified: trunk/htdocs/js/ck/plugins/livejournal/plugin.js
===================================================================
--- trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2012-08-10 13:05:59 UTC (rev 22619)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2012-08-10 13:32:15 UTC (rev 22620)
@@ -800,8 +800,8 @@
 									url: selected.getAttribute('src'),
 									title: selected.getAttribute('title'),
 
-									width: selected.getAttribute('width'),
-									height: selected.getAttribute('height'),
+									width: selected.getAttribute('width') || selected.$.width,
+									height: selected.getAttribute('height') || selected.$.height,
 
 									link: parentHref || "",
 									blank: (hasParentLink? !!parentLink.getAttribute('target') : true),

Tags: anazarov, dat, js, livejournal, nfokz
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