From bdd5d3a6aefeaa1905e717a2137302035636528f Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Thu, 29 Sep 2011 16:03:33 -0400 Subject: [PATCH] Update to latest sprite / css / chosen version. --- chosen/chosen-sprite.png | Bin 3999 -> 3998 bytes chosen/chosen.css | 35 +++++++++++++++++++---------------- chosen/chosen.jquery.js | 6 +++--- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/chosen/chosen-sprite.png b/chosen/chosen-sprite.png index 3a0a0ec71c133a4632d460fe82c04af7a9208c74..9edce05a6a899eaf98481d12dddbc433331a01ee 100644 GIT binary patch delta 397 zcmV;80doGIAD$nO7YZl{0{{R3m1Swou^|W!e_%;OK~#9!)YR8%!$1%P(5qc_xl3~I zy>~mk_dfssHF>Z@;$Ryyfq?a}f|U+}J9h>8!-apw`rQ-JQMS&)ML3#wh%gJA1{@WJ z$-+uf1yobv1?H)MqwxasI#3O$+E(1&u%CrtCOar@!|q65|DYaDDvB36{=z8$KzHSx ze-KI=0#lUbvcUQrfU)wWGJwc#4T}IMuhhr@FxPjhX9=N|{Vo6?wT@)oBSbgn?l;y) z?yjR!<%zGgWc5ed?Vaa54$7;k432sAOr)i34w&`Sf>JhpUOlxBnV!nD&%%xj4iYV? zvanlCD2jIf!VBzIJ@@4AxqmoPiC?7NcX-$mVXG0FymIiPuxz5tL+*@$Lt&eU$P~{E z9JdztSe}8G$e!FXaHDogM071?3~a`;2V@Uxu}jXV{G1R%HK1x+aeKpl4u+ZPptueDBYpjYx|dRvc=+fOrvU)n zf0cK_C~XK#QI^XB>vI6c%9qLjBD*y#0-(H7BLl!(->se{gje>v0D$y5l6{L1U7z`1 zSReVjj!Kosf!31MZ)vx8p7Yq1ms9DEdG$T)5mhh}bZ1Tdv55lsEviJE@1`c~R5s@jL z7&u`q?y)@vULt#P!@!N&2@%nim@%-K$nBFoti>)kqYCmu2$2_i1x`t_L#sctqoP+} s*VBoLp2P086BSYZ!EpK&BBGB00Cy3JR=GjPW&i*H07*qoM6N<$g2P(Ci2wiq diff --git a/chosen/chosen.css b/chosen/chosen.css index 84f7752..db1aa05 100644 --- a/chosen/chosen.css +++ b/chosen/chosen.css @@ -105,14 +105,14 @@ white-space: nowrap; } .chzn-container-single .chzn-search input { - background: #fff url('chosen-sprite.png') no-repeat 100% -20px; - background: url('chosen-sprite.png') no-repeat 100% -20px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee)); - background: url('chosen-sprite.png') no-repeat 100% -20px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%); - background: url('chosen-sprite.png') no-repeat 100% -20px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%); - background: url('chosen-sprite.png') no-repeat 100% -20px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%); - background: url('chosen-sprite.png') no-repeat 100% -20px, -ms-linear-gradient(top, #ffffff 85%,#eeeeee 99%); - background: url('chosen-sprite.png') no-repeat 100% -20px, -ms-linear-gradient(top, #ffffff 85%,#eeeeee 99%); - background: url('chosen-sprite.png') no-repeat 100% -20px, linear-gradient(top, #ffffff 85%,#eeeeee 99%); + background: #fff url('chosen-sprite.png') no-repeat 100% -22px; + background: url('chosen-sprite.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee)); + background: url('chosen-sprite.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%); + background: url('chosen-sprite.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%); + background: url('chosen-sprite.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%); + background: url('chosen-sprite.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%,#eeeeee 99%); + background: url('chosen-sprite.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%,#eeeeee 99%); + background: url('chosen-sprite.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%,#eeeeee 99%); margin: 1px 0; padding: 4px 20px 4px 5px; outline: 0; @@ -233,6 +233,7 @@ padding: 0; } .chzn-container .chzn-results li { + display: none; line-height: 80%; padding: 7px 7px 8px; margin: 0; @@ -240,6 +241,7 @@ } .chzn-container .chzn-results .active-result { cursor: pointer; + display: list-item; } .chzn-container .chzn-results .highlighted { background: #3875d7; @@ -254,6 +256,7 @@ } .chzn-container .chzn-results .no-results { background: #f4f4f4; + display: list-item; } .chzn-container .chzn-results .group-result { cursor: default; @@ -346,14 +349,14 @@ .chzn-rtl .chzn-results .group-option { padding-left: 0; padding-right: 20px; } .chzn-rtl.chzn-container-active .chzn-single-with-drop div { border-right: none; } .chzn-rtl .chzn-search input { - background: url('chosen-sprite.png') no-repeat -38px -20px, #ffffff; - background: url('chosen-sprite.png') no-repeat -38px -20px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee)); - background: url('chosen-sprite.png') no-repeat -38px -20px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%); - background: url('chosen-sprite.png') no-repeat -38px -20px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%); - background: url('chosen-sprite.png') no-repeat -38px -20px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%); - background: url('chosen-sprite.png') no-repeat -38px -20px, -ms-linear-gradient(top, #ffffff 85%,#eeeeee 99%); - background: url('chosen-sprite.png') no-repeat -38px -20px, -ms-linear-gradient(top, #ffffff 85%,#eeeeee 99%); - background: url('chosen-sprite.png') no-repeat -38px -20px, linear-gradient(top, #ffffff 85%,#eeeeee 99%); + background: url('chosen-sprite.png') no-repeat -38px -22px, #ffffff; + background: url('chosen-sprite.png') no-repeat -38px -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee)); + background: url('chosen-sprite.png') no-repeat -38px -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%); + background: url('chosen-sprite.png') no-repeat -38px -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%); + background: url('chosen-sprite.png') no-repeat -38px -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%); + background: url('chosen-sprite.png') no-repeat -38px -22px, -ms-linear-gradient(top, #ffffff 85%,#eeeeee 99%); + background: url('chosen-sprite.png') no-repeat -38px -22px, -ms-linear-gradient(top, #ffffff 85%,#eeeeee 99%); + background: url('chosen-sprite.png') no-repeat -38px -22px, linear-gradient(top, #ffffff 85%,#eeeeee 99%); padding: 4px 5px 4px 20px; } /* @end */ \ No newline at end of file diff --git a/chosen/chosen.jquery.js b/chosen/chosen.jquery.js index 1c19c5f..5a490ff 100644 --- a/chosen/chosen.jquery.js +++ b/chosen/chosen.jquery.js @@ -1,7 +1,7 @@ // Chosen, a Select Box Enhancer for jQuery and Protoype // by Patrick Filler for Harvest, http://getharvest.com // -// Version 0.9.3 +// Version 0.9.4 // Full source at https://github.com/harvesthq/chosen // Copyright (c) 2011 Harvest http://getharvest.com @@ -489,10 +489,10 @@ } }; Chosen.prototype.result_activate = function(el) { - return el.addClass("active-result").show(); + return el.addClass("active-result"); }; Chosen.prototype.result_deactivate = function(el) { - return el.removeClass("active-result").hide(); + return el.removeClass("active-result"); }; Chosen.prototype.result_deselect = function(pos) { var result, result_data;