Skip to content

Commit

Permalink
chosen v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrohnstock committed Jun 23, 2016
1 parent 932c3a5 commit 8503338
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 113 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ Shim repository for http://github.com/harvesthq/chosen
Package Managers
----------------

* [npm](http://npmjs.org/package/drmonty-chosen): `drmonty-chosen`
* [Bower](http://twitter.github.com/bower/): `drmonty-chosen`
* [Composer](http://packagist.org/packages/drmonty/chosen): `drmonty/chosen`
* [Component](http://component.io): `drmonty/chosen`
24 changes: 0 additions & 24 deletions bower.json

This file was deleted.

2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "drmonty-chosen",
"repo": "drmonty/chosen",
"description": "Chosen is a library for making long, unwieldy select boxes more friendly.",
"version": "1.5.1",
"version": "1.6.0",
"homepage": "http://harvesthq.github.io/chosen/",
"license": "MIT",
"keywords": [
Expand Down
5 changes: 2 additions & 3 deletions css/chosen.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Chosen, a Select Box Enhancer for jQuery and Prototype
by Patrick Filler for Harvest, http://getharvest.com
Version 1.5.1
Version 1.6.0
Full source at https://github.com/harvesthq/chosen
Copyright (c) 2011-2016 Harvest http://getharvest.com
Expand Down Expand Up @@ -218,8 +218,7 @@ This file is generated by `grunt build`, do not edit it by hand.
margin: 0;
padding: 0 5px;
width: 100%;
height: auto !important;
height: 1%;
height: auto;
border: 1px solid #aaa;
background-color: #fff;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
Expand Down
4 changes: 2 additions & 2 deletions css/chosen.min.css

Large diffs are not rendered by default.

33 changes: 9 additions & 24 deletions js/chosen.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Chosen, a Select Box Enhancer for jQuery and Prototype
by Patrick Filler for Harvest, http://getharvest.com
Version 1.5.1
Version 1.6.0
Full source at https://github.com/harvesthq/chosen
Copyright (c) 2011-2016 Harvest http://getharvest.com
Expand Down Expand Up @@ -157,7 +157,8 @@ This file is generated by `grunt build`, do not edit it by hand.
this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
this.include_group_label_in_selected = this.options.include_group_label_in_selected || false;
return this.max_shown_results = this.options.max_shown_results || Number.POSITIVE_INFINITY;
this.max_shown_results = this.options.max_shown_results || Number.POSITIVE_INFINITY;
return this.case_sensitive_search = this.options.case_sensitive_search || false;
};

AbstractChosen.prototype.set_default_text = function() {
Expand Down Expand Up @@ -400,9 +401,10 @@ This file is generated by `grunt build`, do not edit it by hand.
};

AbstractChosen.prototype.get_search_regex = function(escaped_search_string) {
var regex_anchor;
var regex_anchor, regex_flag;
regex_anchor = this.search_contains ? "" : "^";
return new RegExp(regex_anchor + escaped_search_string, 'i');
regex_flag = this.case_sensitive_search ? "" : "i";
return new RegExp(regex_anchor + escaped_search_string, regex_flag);
};

AbstractChosen.prototype.search_string_match = function(search_string, regex) {
Expand Down Expand Up @@ -537,29 +539,12 @@ This file is generated by `grunt build`, do not edit it by hand.
};

AbstractChosen.browser_is_supported = function() {
if (/iP(od|hone)/i.test(window.navigator.userAgent)) {
return false;
}
if (/Android/i.test(window.navigator.userAgent)) {
if (/Mobile/i.test(window.navigator.userAgent)) {
return false;
}
}
if (/IEMobile/i.test(window.navigator.userAgent)) {
return false;
}
if (/Windows Phone/i.test(window.navigator.userAgent)) {
return false;
}
if (/BlackBerry/i.test(window.navigator.userAgent)) {
return false;
if ("Microsoft Internet Explorer" === window.navigator.appName) {
return document.documentMode >= 8;
}
if (/BB10/i.test(window.navigator.userAgent)) {
if (/iP(od|hone)/i.test(window.navigator.userAgent) || /IEMobile/i.test(window.navigator.userAgent) || /Windows Phone/i.test(window.navigator.userAgent) || /BlackBerry/i.test(window.navigator.userAgent) || /BB10/i.test(window.navigator.userAgent) || /Android.*Mobile/i.test(window.navigator.userAgent)) {
return false;
}
if (window.navigator.appName === "Microsoft Internet Explorer") {
return document.documentMode >= 8;
}
return true;
};

Expand Down
4 changes: 2 additions & 2 deletions js/chosen.jquery.min.js

Large diffs are not rendered by default.

33 changes: 9 additions & 24 deletions js/chosen.proto.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Chosen, a Select Box Enhancer for jQuery and Prototype
by Patrick Filler for Harvest, http://getharvest.com
Version 1.5.1
Version 1.6.0
Full source at https://github.com/harvesthq/chosen
Copyright (c) 2011-2016 Harvest http://getharvest.com
Expand Down Expand Up @@ -157,7 +157,8 @@ This file is generated by `grunt build`, do not edit it by hand.
this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
this.include_group_label_in_selected = this.options.include_group_label_in_selected || false;
return this.max_shown_results = this.options.max_shown_results || Number.POSITIVE_INFINITY;
this.max_shown_results = this.options.max_shown_results || Number.POSITIVE_INFINITY;
return this.case_sensitive_search = this.options.case_sensitive_search || false;
};

AbstractChosen.prototype.set_default_text = function() {
Expand Down Expand Up @@ -400,9 +401,10 @@ This file is generated by `grunt build`, do not edit it by hand.
};

AbstractChosen.prototype.get_search_regex = function(escaped_search_string) {
var regex_anchor;
var regex_anchor, regex_flag;
regex_anchor = this.search_contains ? "" : "^";
return new RegExp(regex_anchor + escaped_search_string, 'i');
regex_flag = this.case_sensitive_search ? "" : "i";
return new RegExp(regex_anchor + escaped_search_string, regex_flag);
};

AbstractChosen.prototype.search_string_match = function(search_string, regex) {
Expand Down Expand Up @@ -537,29 +539,12 @@ This file is generated by `grunt build`, do not edit it by hand.
};

AbstractChosen.browser_is_supported = function() {
if (/iP(od|hone)/i.test(window.navigator.userAgent)) {
return false;
}
if (/Android/i.test(window.navigator.userAgent)) {
if (/Mobile/i.test(window.navigator.userAgent)) {
return false;
}
}
if (/IEMobile/i.test(window.navigator.userAgent)) {
return false;
}
if (/Windows Phone/i.test(window.navigator.userAgent)) {
return false;
}
if (/BlackBerry/i.test(window.navigator.userAgent)) {
return false;
if ("Microsoft Internet Explorer" === window.navigator.appName) {
return document.documentMode >= 8;
}
if (/BB10/i.test(window.navigator.userAgent)) {
if (/iP(od|hone)/i.test(window.navigator.userAgent) || /IEMobile/i.test(window.navigator.userAgent) || /Windows Phone/i.test(window.navigator.userAgent) || /BlackBerry/i.test(window.navigator.userAgent) || /BB10/i.test(window.navigator.userAgent) || /Android.*Mobile/i.test(window.navigator.userAgent)) {
return false;
}
if (window.navigator.appName === "Microsoft Internet Explorer") {
return document.documentMode >= 8;
}
return true;
};

Expand Down
4 changes: 2 additions & 2 deletions js/chosen.proto.min.js

Large diffs are not rendered by default.

29 changes: 0 additions & 29 deletions package.json

This file was deleted.

0 comments on commit 8503338

Please sign in to comment.