Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/1.7.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Jul 18, 2016
2 parents 685b205 + 624ca98 commit e4462f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions _sass/_dl-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
========================================================================== */

.dl-menuwrapper {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
Expand All @@ -23,6 +21,11 @@
left: 25px;
}

&.dl-menuopen {
width: 100%;
height: 100%;
}

button {
top: 0;
left: 0;
Expand Down
5 changes: 5 additions & 0 deletions assets/js/plugins/jquery.dlmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*
* Copyright 2013, Codrops
* http://www.codrops.com
*
* Modified by Michael Rose
*/
;( function( $, window, undefined ) {

Expand Down Expand Up @@ -66,6 +68,7 @@
},
_config : function() {
this.open = false;
this.$menuwrapper = $( '#dl-menu' );
this.$trigger = this.$el.children( '.dl-trigger' );
this.$menu = this.$el.children( 'ul.dl-menu' );
this.$menuitems = this.$menu.find( 'li:not(.dl-back)' );
Expand Down Expand Up @@ -178,6 +181,7 @@
self._resetMenu();
};

this.$menuwrapper.removeClass( 'dl-menuopen' );
this.$menu.removeClass( 'dl-menuopen' );
this.$menu.addClass( 'dl-menu-toggle' );
this.$trigger.removeClass( 'dl-active' );
Expand All @@ -202,6 +206,7 @@
$body.off( 'click' ).on( 'click.dlmenu', function() {
self._closeMenu() ;
} );
this.$menuwrapper.addClass( 'dl-menuopen' );
this.$menu.addClass( 'dl-menuopen dl-menu-toggle' ).on( this.transEndEventName, function() {
$( this ).removeClass( 'dl-menu-toggle' );
} );
Expand Down
Loading

0 comments on commit e4462f2

Please sign in to comment.