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

[livejournal] r20993: LJSUP-10060: Don't must be ability to up...

Committer: vkurkin
LJSUP-10060: Don't must be ability to upload photos for Basic accounts
U   trunk/htdocs/js/entry.js
Modified: trunk/htdocs/js/entry.js
===================================================================
--- trunk/htdocs/js/entry.js	2012-01-25 11:56:52 UTC (rev 20992)
+++ trunk/htdocs/js/entry.js	2012-01-25 12:16:06 UTC (rev 20993)
@@ -971,7 +971,7 @@
 };
 
 InOb.handleInsertImageBeta = (function () {
-	var ippu;
+	var ippu, contentElement;
 
 	function onHtmlReady(event) {
 		if (window.switchedRteOn) {
@@ -992,12 +992,9 @@
 	if (!window.ljphotoEnabled) {
 		jQuery(function () {
 			ippu = new LJAPP_IPPU(window.fotkiErrorUpgradeTitle);
-			ippu.contentElement = $('pics-error-upgrade');
-
 			ippu.setCancelledCallback(function () {
 				ippu.contentElement.style.display = 'none';
 			});
-			ippu.setContentElement(ippu.contentElement);
 			ippu.setModal(true);
 			ippu.setOverlayVisible(true);
 			ippu.setClickToClose(true);
@@ -1017,6 +1014,8 @@
 
 			jPhotoUploader.photouploader('option', 'type', type || 'upload').bind('htmlready', onHtmlReady).photouploader('show');
 		} else {
+			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