From f4025f7fbdb57537a057f44ae849aa0421d83436 Mon Sep 17 00:00:00 2001 From: AgentPL Date: Thu, 3 Dec 2015 05:28:50 +0100 Subject: [PATCH] Make custom drilldown backButton markup working The drilldown back event currently works only with the default markup. The reason is it's currently triggered only when a custom markup doesn't exist. Fix by detaching _this._back($menu) from the existing condition. --- js/foundation.drilldown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation.drilldown.js b/js/foundation.drilldown.js index 488cdda2a..04aedcea1 100644 --- a/js/foundation.drilldown.js +++ b/js/foundation.drilldown.js @@ -98,8 +98,8 @@ $back = $menu.find('.js-drilldown-back'); if(!$back.length){ $menu.prepend(_this.options.backButton); - _this._back($menu); } + _this._back($menu); }); if(!this.$element.parent().hasClass('is-drilldown')){ this.$wrapper = $(this.options.wrapper).addClass('is-drilldown').css(this._getMaxDims()); -- 2.47.2