From 0a75dc8771a31ed8957afad9f9d1406cceef1c60 Mon Sep 17 00:00:00 2001 From: Marius Olbertz Date: Thu, 5 May 2016 20:07:13 +0200 Subject: [PATCH] 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. --- js/foundation.accordionMenu.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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]')); } /** -- 2.47.2