Update to latest version of Chosen.
This commit is contained in:
parent
a2c74e01c5
commit
b9ab5c5176
|
@ -134,7 +134,7 @@
|
||||||
document.observe("click", this.click_test_action);
|
document.observe("click", this.click_test_action);
|
||||||
this.results_show();
|
this.results_show();
|
||||||
} else if (!this.is_multiple && evt && (evt.target === this.selected_item || evt.target.up("a.chzn-single"))) {
|
} else if (!this.is_multiple && evt && (evt.target === this.selected_item || evt.target.up("a.chzn-single"))) {
|
||||||
this.results_show();
|
this.results_toggle();
|
||||||
}
|
}
|
||||||
return this.activate_field();
|
return this.activate_field();
|
||||||
} else {
|
} else {
|
||||||
|
@ -275,6 +275,13 @@
|
||||||
}
|
}
|
||||||
return this.result_highlight = null;
|
return this.result_highlight = null;
|
||||||
};
|
};
|
||||||
|
Chosen.prototype.results_toggle = function() {
|
||||||
|
if (this.results_showing) {
|
||||||
|
return this.results_hide();
|
||||||
|
} else {
|
||||||
|
return this.results_show();
|
||||||
|
}
|
||||||
|
};
|
||||||
Chosen.prototype.results_show = function() {
|
Chosen.prototype.results_show = function() {
|
||||||
var dd_top;
|
var dd_top;
|
||||||
if (!this.is_multiple) {
|
if (!this.is_multiple) {
|
||||||
|
|
Loading…
Reference in a new issue