Improve accordion component
This commit is contained in:
parent
ca00b8cf53
commit
17ac414d74
|
|
@ -13,6 +13,7 @@ Improvements:
|
|||
* Open project activities in modal box
|
||||
* Display project analytics in modal box
|
||||
* Display project exports in modal box
|
||||
* Improve accordion component
|
||||
|
||||
Version 1.0.36 (Dec 30, 2016)
|
||||
-----------------------------
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,8 +1,7 @@
|
|||
KB.onClick('.accordion-toggle', function(e) {
|
||||
var section = KB.dom(e.target).parent('.accordion-section');
|
||||
var sectionElement = KB.dom(e.target).parent('.accordion-section');
|
||||
|
||||
if (section) {
|
||||
KB.dom(section).toggleClass('accordion-collapsed');
|
||||
KB.dom(KB.dom(section).find('.accordion-content')).toggle();
|
||||
if (sectionElement) {
|
||||
KB.dom(sectionElement).toggleClass('accordion-collapsed');
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue