can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r21690: LJSUP-11772: Cannot select All Notify in...

Committer: dpetrov
LJSUP-11772: Cannot select All Notify in /manage/settings/?cat=notifications
U   trunk/htdocs/js/settings.js
Modified: trunk/htdocs/js/settings.js
===================================================================
--- trunk/htdocs/js/settings.js	2012-04-11 09:04:33 UTC (rev 21689)
+++ trunk/htdocs/js/settings.js	2012-04-11 09:07:53 UTC (rev 21690)
@@ -51,6 +51,10 @@
 	};
 
 	var travaElement = $(selectors.Trava);
+
+	//run code only on extensions page
+	if (travaElement.length === 0) { return; }
+
 	var musicSelect = $(selectors.musicSelect);
 	var userName = travaElement.find(selectors.userName);
 	var hiddenField = travaElement.find(selectors.uIdInput);

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