From: AgentPL Date: Thu, 3 Dec 2015 04:28:50 +0000 (+0100) Subject: Make custom drilldown backButton markup working X-Git-Tag: v6.0.6~76^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7360%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git 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. --- 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());