Committer: vkurkin
LJSUP-10060: Don't must be ability to upload photos for Basic accountsU 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'; }