Improve accordion component
This commit is contained in:
@@ -13,6 +13,7 @@ Improvements:
|
|||||||
* Open project activities in modal box
|
* Open project activities in modal box
|
||||||
* Display project analytics in modal box
|
* Display project analytics in modal box
|
||||||
* Display project exports in modal box
|
* Display project exports in modal box
|
||||||
|
* Improve accordion component
|
||||||
|
|
||||||
Version 1.0.36 (Dec 30, 2016)
|
Version 1.0.36 (Dec 30, 2016)
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|||||||
4
assets/js/app.min.js
vendored
4
assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,8 +1,7 @@
|
|||||||
KB.onClick('.accordion-toggle', function(e) {
|
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) {
|
if (sectionElement) {
|
||||||
KB.dom(section).toggleClass('accordion-collapsed');
|
KB.dom(sectionElement).toggleClass('accordion-collapsed');
|
||||||
KB.dom(KB.dom(section).find('.accordion-content')).toggle();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user