Closed (fixed)
Project:
Plusmore
Version:
7.x-1.0
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2013 at 16:14 UTC
Updated:
13 May 2013 at 02:30 UTC
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
Comment #1
rahulbile commentedThanks d9media.
Looks good to me. Committed .