Updating to latest version of chosen.

gh-pages
Patrick Filler 2011-07-08 16:55:04 -04:00
parent cffe5a09a7
commit 6d81952999
1 changed files with 12 additions and 12 deletions

View File

@ -141,20 +141,20 @@
Chosen.prototype.container_click = function(evt) { Chosen.prototype.container_click = function(evt) {
if (evt && evt.type === "click") { if (evt && evt.type === "click") {
evt.stop(); evt.stop();
if (!this.pending_destroy_click) { }
if (!this.active_field) { if (!this.pending_destroy_click) {
if (this.is_multiple) { if (!this.active_field) {
this.search_field.clear(); if (this.is_multiple) {
} this.search_field.clear();
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();
} }
return this.activate_field(); document.observe("click", this.click_test_action);
} else { this.results_show();
return this.pending_destroy_click = false; } else if (!this.is_multiple && evt && (evt.target === this.selected_item || evt.target.up("a.chzn-single"))) {
this.results_show();
} }
return this.activate_field();
} else {
return this.pending_destroy_click = false;
} }
}; };
Chosen.prototype.mouse_enter = function() { Chosen.prototype.mouse_enter = function() {