Ryan Lane has uploaded a new change for review.
https://gerrit.wikimedia.org/r/80517
Change subject: jquery.chosen: set default text width to auto
......................................................................
jquery.chosen: set default text width to auto
Rather than hardcoding the default text width to 25px, set the
default to auto, so that when using width: auto for the chosen
container an empty input won't be 25px.
Change-Id: I694daa263f921c9e5a0490519af352d173fb4c9d
---
M resources/jquery.chosen/chosen.jquery.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/17/80517/1
diff --git a/resources/jquery.chosen/chosen.jquery.js
b/resources/jquery.chosen/chosen.jquery.js
index a240ebd..745174f 100644
--- a/resources/jquery.chosen/chosen.jquery.js
+++ b/resources/jquery.chosen/chosen.jquery.js
@@ -391,7 +391,7 @@
};
this.container = $("<div />", container_props);
if (this.is_multiple) {
- this.container.html('<ul class="chzn-choices"><li
class="search-field"><input type="text" value="' + this.default_text + '"
class="default" autocomplete="off" style="width:25px;" /></li></ul><div
class="chzn-drop"><ul class="chzn-results"></ul></div>');
+ this.container.html('<ul class="chzn-choices"><li
class="search-field"><input type="text" value="' + this.default_text + '"
class="default" autocomplete="off" style="width:auto;" /></li></ul><div
class="chzn-drop"><ul class="chzn-results"></ul></div>');
} else {
this.container.html('<a href="javascript:void(0)" class="chzn-single
chzn-default" tabindex="-1"><span>' + this.default_text +
'</span><div><b></b></div></a><div class="chzn-drop"><div
class="chzn-search"><input type="text" autocomplete="off" /></div><ul
class="chzn-results"></ul></div>');
}
--
To view, visit https://gerrit.wikimedia.org/r/80517
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I694daa263f921c9e5a0490519af352d173fb4c9d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Ryan Lane <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits