Committer: dpetrov
LJSUP-11815: Js error after posting post (LJAPP_IPPU is not defined)U trunk/htdocs/js/entry.js
Modified: trunk/htdocs/js/entry.js =================================================================== --- trunk/htdocs/js/entry.js 2012-04-13 06:24:02 UTC (rev 21709) +++ trunk/htdocs/js/entry.js 2012-04-13 07:12:59 UTC (rev 21710) @@ -921,6 +921,9 @@ if (!window.ljphotoUploadEnabled) { jQuery(function () { + //LJSUP-11815: the code should work only on the page with editor + if (!$('draft')) { return; } + ippu = new LJAPP_IPPU(window.fotkiErrorUpgradeTitle); ippu.setCancelledCallback(function () { ippu.contentElement.style.display = 'none';