can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r21710: LJSUP-11815: Js error after posting post...

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';

Tags: can3p, dpetrov, js, livejournal
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