Update to latest version of Chosen.

This commit is contained in:
Patrick Filler 2011-07-19 14:05:28 -04:00
parent a2c74e01c5
commit b9ab5c5176

View file

@ -134,7 +134,7 @@
document.observe("click", this.click_test_action);
this.results_show();
} 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();
} else {
@ -275,6 +275,13 @@
}
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() {
var dd_top;
if (!this.is_multiple) {
@ -752,4 +759,4 @@
return parser.parsed;
};
root.OptionsParser = OptionsParser;
}).call(this);
}).call(this);