From 6d819529995527ff798f24cb3c460d683445e0dd Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Fri, 8 Jul 2011 16:55:04 -0400 Subject: [PATCH] Updating to latest version of chosen. --- chosen/chosen.proto.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/chosen/chosen.proto.js b/chosen/chosen.proto.js index 26931da..27452b7 100644 --- a/chosen/chosen.proto.js +++ b/chosen/chosen.proto.js @@ -141,20 +141,20 @@ Chosen.prototype.container_click = function(evt) { if (evt && evt.type === "click") { evt.stop(); - if (!this.pending_destroy_click) { - if (!this.active_field) { - 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(); + } + if (!this.pending_destroy_click) { + if (!this.active_field) { + if (this.is_multiple) { + this.search_field.clear(); } - return this.activate_field(); - } else { - return this.pending_destroy_click = false; + 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(); + } else { + return this.pending_destroy_click = false; } }; Chosen.prototype.mouse_enter = function() {