From 4f6db53bfa181e501c2e20b79c13eb0e9c6bc6e3 Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Mon, 27 Jun 2011 13:57:00 -0400 Subject: [PATCH] Handle some issues with updating a single select after initial build. --- chosen/chosen.proto.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/chosen/chosen.proto.js b/chosen/chosen.proto.js index b8be350..ebfa162 100644 --- a/chosen/chosen.proto.js +++ b/chosen/chosen.proto.js @@ -274,6 +274,9 @@ Chosen.prototype = { this.search_choices.select("li.search-choice").invoke("remove"); this.choices = 0; } + else if( !this.is_multiple ){ + this.selected_item.down("span").update(this.default_text); + } var i, content=''; for( i = 0; i