Skip to content

Commit

Permalink
chosen v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrohnstock committed Dec 18, 2014
1 parent 919d4fc commit b5b5bc9
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 19 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "drmonty-chosen",
"description": "Chosen is a library for making long, unwieldy select boxes more friendly.",
"homepage": "http://harvesthq.github.io/chosen/",
"version": "1.2.0",
"version": "1.3.0",
"keywords": [
"select",
"multiselect",
Expand Down
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.2.0",
"version": "1.3.0",
"homepage": "http://harvesthq.github.io/chosen/",
"license": "MIT",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion 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.2.0
Version 1.3.0
Full source at https://github.com/harvesthq/chosen
Copyright (c) 2011-2014 Harvest http://getharvest.com
Expand Down
2 changes: 1 addition & 1 deletion css/chosen.min.css

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

20 changes: 15 additions & 5 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.2.0
Version 1.3.0
Full source at https://github.com/harvesthq/chosen
Copyright (c) 2011-2014 Harvest http://getharvest.com
Expand Down Expand Up @@ -37,7 +37,8 @@ This file is generated by `grunt build`, do not edit it by hand.
group: true,
label: this.escapeExpression(group.label),
children: 0,
disabled: group.disabled
disabled: group.disabled,
classes: group.className
});
_ref = group.childNodes;
_results = [];
Expand Down Expand Up @@ -126,6 +127,7 @@ This file is generated by `grunt build`, do not edit it by hand.
this.setup();
this.set_up_html();
this.register_observers();
this.on_ready();
}

AbstractChosen.prototype.set_default_values = function() {
Expand Down Expand Up @@ -252,15 +254,20 @@ This file is generated by `grunt build`, do not edit it by hand.
};

AbstractChosen.prototype.result_add_group = function(group) {
var group_el;
var classes, group_el;
if (!(group.search_match || group.group_match)) {
return '';
}
if (!(group.active_options > 0)) {
return '';
}
classes = [];
classes.push("group-result");
if (group.classes) {
classes.push(group.classes);
}
group_el = document.createElement("li");
group_el.className = "group-result";
group_el.className = classes.join(" ");
group_el.innerHTML = group.search_text;
return this.outerHTML(group_el);
};
Expand Down Expand Up @@ -598,7 +605,10 @@ This file is generated by `grunt build`, do not edit it by hand.
}
this.results_build();
this.set_tab_index();
this.set_label_behavior();
return this.set_label_behavior();
};

Chosen.prototype.on_ready = function() {
return this.form_field_jq.trigger("chosen:ready", {
chosen: this
});
Expand Down
4 changes: 2 additions & 2 deletions js/chosen.jquery.min.js

Large diffs are not rendered by default.

20 changes: 15 additions & 5 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.2.0
Version 1.3.0
Full source at https://github.com/harvesthq/chosen
Copyright (c) 2011-2014 Harvest http://getharvest.com
Expand Down Expand Up @@ -37,7 +37,8 @@ This file is generated by `grunt build`, do not edit it by hand.
group: true,
label: this.escapeExpression(group.label),
children: 0,
disabled: group.disabled
disabled: group.disabled,
classes: group.className
});
_ref = group.childNodes;
_results = [];
Expand Down Expand Up @@ -126,6 +127,7 @@ This file is generated by `grunt build`, do not edit it by hand.
this.setup();
this.set_up_html();
this.register_observers();
this.on_ready();
}

AbstractChosen.prototype.set_default_values = function() {
Expand Down Expand Up @@ -252,15 +254,20 @@ This file is generated by `grunt build`, do not edit it by hand.
};

AbstractChosen.prototype.result_add_group = function(group) {
var group_el;
var classes, group_el;
if (!(group.search_match || group.group_match)) {
return '';
}
if (!(group.active_options > 0)) {
return '';
}
classes = [];
classes.push("group-result");
if (group.classes) {
classes.push(group.classes);
}
group_el = document.createElement("li");
group_el.className = "group-result";
group_el.className = classes.join(" ");
group_el.innerHTML = group.search_text;
return this.outerHTML(group_el);
};
Expand Down Expand Up @@ -585,7 +592,10 @@ This file is generated by `grunt build`, do not edit it by hand.
}
this.results_build();
this.set_tab_index();
this.set_label_behavior();
return this.set_label_behavior();
};

Chosen.prototype.on_ready = function() {
return this.form_field.fire("chosen:ready", {
chosen: this
});
Expand Down
4 changes: 2 additions & 2 deletions js/chosen.proto.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "drmonty-chosen",
"description": "Chosen is a library for making long, unwieldy select boxes more friendly.",
"homepage": "http://harvesthq.github.io/chosen/",
"version": "1.2.0",
"version": "1.3.0",
"keywords": [
"select",
"multiselect",
Expand Down

0 comments on commit b5b5bc9

Please sign in to comment.