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

[livejournal] r21024: LJSUP-10284: Fotki: ability to set image...

Committer: vkurkin
LJSUP-10284: Fotki: ability to set images sequence with adding to an entry
U   trunk/htdocs/js/entry.js
Modified: trunk/htdocs/js/entry.js
===================================================================
--- trunk/htdocs/js/entry.js	2012-01-27 10:48:56 UTC (rev 21023)
+++ trunk/htdocs/js/entry.js	2012-01-27 11:53:07 UTC (rev 21024)
@@ -971,7 +971,7 @@
 };
 
 InOb.handleInsertImageBeta = (function () {
-	var ippu, contentElement;
+	var ippu;
 
 	function onHtmlReady(event) {
 		if (window.switchedRteOn) {
@@ -1014,7 +1014,7 @@
 
 			jPhotoUploader.photouploader('option', 'type', type || 'upload').bind('htmlready', onHtmlReady).photouploader('show');
 		} else {
-			ippu.contentElement = $('pics-error-upgrade');
+			ippu.contentElement = ippu.contentElement || $('pics-error-upgrade');
 			ippu.setContentElement(ippu.contentElement);
 			ippu.show();
 			ippu.contentElement.style.display = 'block';

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