Skip to content

Commit

Permalink
Adds new classes for the label (+ Fix the if again)
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsalminen committed Nov 14, 2012
1 parent 1cd34d4 commit 9bd9bb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tinynav.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@
$(l_namespace_i).after($select);

// Inject label
if (!settings.label) {
if (settings.label) {
$select.before(
$("<label/>")
.attr("for", namespace_i)
.addClass(namespace + ' ' + namespace_i)
.addClass(namespace + '_label ' + namespace_i + '_label')
.append(settings.label)
);
}
Expand Down
2 changes: 1 addition & 1 deletion tinynav.min.js

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

0 comments on commit 9bd9bb4

Please sign in to comment.