use chosen for select boxes

This commit is contained in:
Roland Gruber 2013-12-26 16:09:30 +00:00
parent 9edfe22754
commit 907c62663e
6 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,7 @@ time.
* templates/selfService/*
* lib/modules/aliasEntry.inc
* lib/modules/automount.inc
* lib/modules/bindDLZ.inc
* lib/modules/customFields.inc
* lib/modules/customScripts.inc
* lib/modules/device.inc
@ -36,6 +37,7 @@ time.
* lib/modules/zarafaServer.inc
* lib/modules/zarafaUser.inc
* lib/types/alias.inc
* lib/types/bind.inc
* lib/types/automountType.inc
* lib/types/gon.inc
* lib/types/nisObjectType.inc
@ -172,5 +174,7 @@ templates/lib/*wz_tooltip.js C Walter Zorn
lib/3rdParty/phpseclib C Jim Wigginton
templates/lib/*jquery*.js D 2010 John Resig, Paul Bakaus, Fred Heusschen
templates/lib/*jquery-validationEngine-*.js D 2010 Cedric Dugas and Olivier Refalo
templates/lib/*jquery-fineuploader-*.js D 2010 Andrew Valums
templates/lib/*jquery-chosen-*.js D 2013 Patrick Filler

View File

@ -1161,6 +1161,9 @@ class htmlSelect extends htmlElement {
elseif (sizeof($this->elements) == 0) {
echo '</div>';
}
if (!$this->multiSelect && !($this->size > 1)) {
echo '<script type="text/javascript">jQuery(document).ready(function() {jQuery(\'#' . $this->name . '\').chosen({search_contains: "true"})});</script>';
}
if ($this->transient) {
return array();
}

3
lam/style/150_jquery-chosen.min.css vendored Normal file

File diff suppressed because one or more lines are too long

BIN
lam/style/chosen-sprite.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 872 B

File diff suppressed because one or more lines are too long