Skip to content

Commit 38593c5

Browse files
committed
New release
1 parent 9f3cbb5 commit 38593c5

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SlickNav v1.0.3
1+
# SlickNav v1.0.4
22
## Responsive Mobile Menu jQuery Plugin
33

44
###[SlickNav.com](http://slicknav.com)

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "slicknav",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"authors": [
55
"Josh Cope"
66
],

dist/jquery.slicknav.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* SlickNav Responsive Mobile Menu v1.0.3
2+
* SlickNav Responsive Mobile Menu v1.0.4
33
* (c) 2015 Josh Cope
44
* licensed under MIT
55
*/
@@ -128,7 +128,7 @@
128128
// check for anchors
129129

130130
var a = item.contents(),
131-
containsAnchor = false;
131+
containsAnchor = false,
132132
nodes = [];
133133

134134
$(a).each(function () {
@@ -154,11 +154,16 @@
154154
} else
155155
$(nodes).wrapAll('<span class="'+prefix+'_parent-link '+prefix+'_row"/>').parent();
156156

157-
item.addClass(prefix+'_collapsed');
157+
if (!settings.showChildren) {
158+
item.addClass(prefix+'_collapsed');
159+
} else {
160+
item.addClass(prefix+'_open');
161+
}
162+
158163
item.addClass(prefix+'_parent');
159164

160165
// create parent arrow. wrap with link if parent links and separating
161-
var arrowElement = $('<span class="'+prefix+'_arrow">'+settings.closedSymbol+'</span>');
166+
var arrowElement = $('<span class="'+prefix+'_arrow">'+(settings.showChildren?settings.openedSymbol:settings.closedSymbol)+'</span>');
162167

163168
if (settings.allowParentLinks && !settings.nestedParentLinks && containsAnchor)
164169
arrowElement = arrowElement.wrap(wrapElement).parent();

dist/jquery.slicknav.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.3",
2+
"version": "1.0.4",
33
"name": "slicknav",
44
"description": "",
55
"keywords": [

0 commit comments

Comments
 (0)