]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fixes this.$wrapper return #8598 8679/head
authorjk <j.koehler@modulingo.de>
Tue, 26 Apr 2016 22:31:29 +0000 (00:31 +0200)
committerjk <j.koehler@modulingo.de>
Tue, 26 Apr 2016 22:31:29 +0000 (00:31 +0200)
js/foundation.drilldown.js

index f38c6d3460ca704201953a4dbd2fe1dbbcf10519..ca209de50246c0259b544fc636ee34a5a43645a5 100644 (file)
@@ -89,8 +89,8 @@ class Drilldown {
       _this._back($menu);
     });
     if(!this.$element.parent().hasClass('is-drilldown')){
-      this.$wrapper = $(this.options.wrapper).addClass('is-drilldown').css(this._getMaxDims());
-      this.$element.wrap(this.$wrapper);
+      this.$wrapper = $(this.options.wrapper).addClass('is-drilldown');
+      this.$wrapper = this.$element.wrap(this.$wrapper).parent().css(this._getMaxDims());
     }
   }