Палсеич— (lusever) wrote in changelog,
Палсеич—
lusever
changelog

[livejournal] r18520: LJSUP-8107: Work with community director...

Committer: pkornilov
LJSUP-8107: Work with community directory
U   trunk/htdocs/js/communitydir.js
Modified: trunk/htdocs/js/communitydir.js
===================================================================
--- trunk/htdocs/js/communitydir.js	2011-03-11 09:32:38 UTC (rev 18519)
+++ trunk/htdocs/js/communitydir.js	2011-03-11 09:37:42 UTC (rev 18520)
@@ -1,7 +1,3 @@
-jQuery(function(){
-	jQuery('div.b-catalogue li > span')
-	.click(function(e){
-		e.preventDefault();
-		jQuery(this).parent().toggleClass('m-section-item-open');
-	});
+jQuery(document).delegate(".b-catalogue .m-switch", "click", function() {
+	jQuery(this).closest("li").toggleClass("m-section-item-open");
 });

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