From b0e47a70f7fea9fd745350dcb27494a1a4003245 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 27 Nov 2012 22:24:25 +0000 Subject: [PATCH] Fix bug where multi-select default text was not fully shown --- phpgwapi/js/jquery/chosen/chosen.jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jquery/chosen/chosen.jquery.js b/phpgwapi/js/jquery/chosen/chosen.jquery.js index f5ff671460..185350ceaa 100644 --- a/phpgwapi/js/jquery/chosen/chosen.jquery.js +++ b/phpgwapi/js/jquery/chosen/chosen.jquery.js @@ -699,7 +699,7 @@ console.log("Distance to top: %d Distance to bottom %d", to_top, to_bottom, this Chosen.prototype.show_search_field_default = function() { if (this.is_multiple && this.choices < 1 && !this.active_field) { this.search_field.val(this.default_text); - return this.search_field.addClass("default"); + return this.search_field.addClass("default").css('width','100%').blur(); } else { this.search_field.val(""); return this.search_field.removeClass("default");