Hi thanks for this handy little module!

I encountered a problem when having multiple "plusmore"-fields on one page: If you click one of them, your script hides all other ".term-plus-more" on the page. I fixed this for my site with the following changes to the script:

(function($) {
	$(document).ready(function(){
		$(".term-plus-more").click(function(){
			$(this).hide(); // only close the clicked element
   			$(this).next().slideToggle("slow"); 
			return false;
		}).next().hide();
		$(".more-term-hide").click(function(){
			$(this).parent(".term-plus-data").hide(); // only hide the data on the selected container
			$(this).parent().prev(".term-plus-more").show(); // only show the link for the selected container
		});
	});
})(jQuery);

A great little tool! Thanks again

Comments

rahulbile’s picture

Status: Active » Fixed

Thanks d9media.

Looks good to me. Committed .

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.