From: Marius Olbertz Date: Thu, 5 May 2016 18:07:13 +0000 (+0200) Subject: Added showAll using down() for all elements. X-Git-Tag: v6.3-rc1~78^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a75dc8771a31ed8957afad9f9d1406cceef1c60;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Added showAll using down() for all elements. Rewrote hideAll to use up() for all elements. Like in #8460 purposed by @crbranch the hideAll method should use the up() method. Also showAll() could be useful. --- diff --git a/js/foundation.accordionMenu.js b/js/foundation.accordionMenu.js index 212e4584f..55f7e83f3 100644 --- a/js/foundation.accordionMenu.js +++ b/js/foundation.accordionMenu.js @@ -173,7 +173,15 @@ class AccordionMenu { * @function */ hideAll() { - this.$element.find('[data-submenu]').slideUp(this.options.slideSpeed); + this.up(this.$element.find('[data-submenu]')); + } + + /** + * Opens all panes of the menu. + * @function + */ + showAll() { + this.down(this.$element.find('[data-submenu]')); } /**