Skip to content

Commit

Permalink
Merge pull request #520 from caseyjhol/master
Browse files Browse the repository at this point in the history
v1.5.4 - fix #510, fix #513
  • Loading branch information
caseyjhol committed Mar 14, 2014
2 parents 5b34f6f + 07d46a4 commit 7f58cbb
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bootstrap-select.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* bootstrap-select v1.5.3
* bootstrap-select v1.5.4
* https://silviomoreto.github.io/bootstrap-select/
*
* Copyright 2013 bootstrap-select
Expand Down
2 changes: 1 addition & 1 deletion bootstrap-select.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"select",
"replacement"
],
"version": "1.5.3",
"version": "1.5.4",
"author": {
"name": "Silvio Moreto",
"url": "https://github.com/silviomoreto/"
Expand Down
10 changes: 5 additions & 5 deletions bootstrap-select.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* bootstrap-select v1.5.3
* bootstrap-select v1.5.4
* https://silviomoreto.github.io/bootstrap-select/
*
* Copyright 2013 bootstrap-select
Expand Down Expand Up @@ -191,7 +191,7 @@
});

$.each(_liA, function(i, item) {
var hide = item === '<a></a>' ? 'class="hide"' : '';
var hide = item === '<a></a>' ? 'class="hide is-hidden"' : '';
_liHtml += '<li rel="' + i + '"' + hide + '>' + item + '</li>';
});

Expand Down Expand Up @@ -653,7 +653,7 @@
that.$menu.find('.active').removeClass('active');
if (!!that.$searchbox.val()) {
that.$searchbox.val('');
that.$menu.find('li').show();
that.$lis.not('.is-hidden').removeClass('hide');
if (!!no_results.parent().length) no_results.remove();
}
if (!that.multiple) that.$menu.find('.selected').addClass('active');
Expand All @@ -664,7 +664,7 @@

this.$searchbox.on('input propertychange', function() {
if (that.$searchbox.val()) {
that.$lis.removeClass('hide').find('a').not(':icontains(' + that.$searchbox.val() + ')').parent().addClass('hide');
that.$lis.not('.is-hidden').removeClass('hide').find('a').not(':icontains(' + that.$searchbox.val() + ')').parent().addClass('hide');

if (!that.$menu.find('li').filter(':visible:not(.no-results)').length) {
if (!!no_results.parent().length) no_results.remove();
Expand All @@ -675,7 +675,7 @@
}

} else {
that.$menu.find('li').removeClass('hide');
that.$lis.not('.is-hidden').removeClass('hide');
if (!!no_results.parent().length) no_results.remove();
}

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-select.min.css

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

4 changes: 2 additions & 2 deletions bootstrap-select.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"bootstrap-select.css",
"bootstrap-select.js"
],
"version": "1.5.3",
"version": "1.5.4",
"homepage": "https://github.com/silviomoreto/bootstrap-select",
"authors": [
"silviomoreto"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A custom <select> for Bootstrap using button dropdown as replacement",
"keywords": ["form", "bootstrap", "select", "replacement"],
"homepage": "https://github.com/silviomoreto/bootstrap-select",
"version": "1.5.3",
"version": "1.5.4",
"authors": [
{
"name": "Silvio Moreto",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "bootstrap-select",
"filename": "bootstrap-select.js",
"description": "A custom <select> for Bootstrap using button dropdown as replacement",
"version": "1.5.3",
"version": "1.5.4",
"homepage": "https://silviomoreto.github.io/bootstrap-select/",
"author": {
"name": "Silvio Moreto",
Expand Down

0 comments on commit 7f58cbb

Please sign in to comment.