Skip to content

Commit

Permalink
Made adding content to menu possible
Browse files Browse the repository at this point in the history
  • Loading branch information
FrDH committed Aug 17, 2014
1 parent c5ce4f2 commit 3f915ff
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/js/addons/jquery.mmenu.header.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
$prev = $header.find( '.' + _c.prev ),
$next = $header.find( '.' + _c.next ),
_page = false;

if ( glbl.$page )
{
_page = '#' + glbl.$page.attr( 'id' );
Expand All @@ -73,7 +73,7 @@
{
e.preventDefault();
e.stopPropagation();

var href = $(this).attr( 'href' );
if ( href !== '#' )
{
Expand Down
12 changes: 6 additions & 6 deletions src/js/addons/jquery.mmenu.searchfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
var $wrapper = $(opts.addTo, this.$menu).filter( '.' + _c.panel );
break;
}

if ( $wrapper.length )
{
$wrapper.each(
Expand All @@ -72,17 +73,16 @@
else
{
var $wrpr = $panl.children().first(),
insrt = 'insert' + ( $wrpr.is( '.' + _c.subtitle ) )
? 'After'
: 'Before';
insrt = ( $wrpr.is( '.' + _c.subtitle ) )
? 'insertAfter'
: 'insertBefore';
}

$( '<' + _node + ' class="' + _c.search + '" />' )
.append( '<input placeholder="' + opts.placeholder + '" type="text" autocomplete="off" />' )
[ insrt ]( $wrpr );
}

// TODO alleen als nog niet is
if ( opts.noResults )
{
if ( $panl.is( '.' + _c.menu ) )
Expand Down Expand Up @@ -119,7 +119,7 @@
function()
{
var $srch = $(this);

if ( opts.addTo == 'menu' )
{
var $pnls = $('.' + _c.panel, that.$menu),
Expand All @@ -130,7 +130,7 @@
var $pnls = $srch.closest( '.' + _c.panel ),
$panl = $pnls;
}
var $inpt = $srch.find( 'input' ),
var $inpt = $srch.children( 'input' ),
$itms = that.__findAddBack( $pnls, '.' + _c.list ).children( 'li' ),
$lbls = $itms.filter( '.' + _c.label ),
$rslt = $itms
Expand Down
2 changes: 1 addition & 1 deletion src/js/addons/jquery.mmenu.searchfield.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/js/jquery.mmenu.min.all.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/jquery.mmenu.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/jquery.mmenu.oncanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
var $opening = $(this),
id = $opening.attr( 'id' );

$('a[href="#' + id + '"]', that.$menu)
$('a[href="#' + id + '"]', $allpanels)
.off( _e.click )
.on( _e.click,
function( e )
Expand Down
2 changes: 1 addition & 1 deletion src/js/jquery.mmenu.oncanvas.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/umd/addons/jquery.mmenu.searchfield.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3f915ff

Please sign in to comment.