mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
VE-1996: Create JS to toggle pi-collapse-closed class
This commit is contained in:
parent
2faa1bd633
commit
af4026b386
|
@ -27,5 +27,21 @@
|
|||
}
|
||||
};
|
||||
|
||||
var CollapsibleGroup = {
|
||||
init: function() {
|
||||
var $collapsibleGroups = $('.pi-collapse');
|
||||
|
||||
$collapsibleGroups.each( function( index, group ) {
|
||||
var $group = $collapsibleGroups.eq(index),
|
||||
$header = $group.find('.pi-header');
|
||||
|
||||
$header.click( function() {
|
||||
$group.toggleClass('pi-collapse-closed');
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
ImageCollection.init();
|
||||
CollapsibleGroup.init();
|
||||
})(window, jQuery);
|
||||
|
|
Loading…
Reference in a new issue