diff --git a/admin/thirdparty/chosen/chosen/chosen.jquery.js b/admin/thirdparty/chosen/chosen/chosen.jquery.js index 491e79140..bb3c1ee4e 100644 --- a/admin/thirdparty/chosen/chosen/chosen.jquery.js +++ b/admin/thirdparty/chosen/chosen/chosen.jquery.js @@ -1,12 +1,6 @@ -// Chosen, a Select Box Enhancer for jQuery and Protoype -// by Patrick Filler for Harvest, http://getharvest.com -// -// Version 0.9.7 -// Full source at https://github.com/harvesthq/chosen -// Copyright (c) 2011 Harvest http://getharvest.com +//based on version 0.9.7 and applied a very simple patch that fix percentaage width support on select tag +//the patch has been documented https://github.com/harvesthq/chosen/issues/300. -// MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md -// This file is generated by `cake build`, do not edit it by hand. (function() { var SelectParser; @@ -302,8 +296,10 @@ Copyright (c) 2011 by Harvest container_div = $("
", { id: this.container_id, "class": "chzn-container" + (this.is_rtl ? ' chzn-rtl' : ''), - style: 'width: ' + this.f_width + 'px;' + //patch applied: https://github.com/harvesthq/chosen/issues/300 + style: 'width: ' + (this.options.width || this.f_width + 'px;') }); + if (this.is_multiple) { container_div.html('