dropdown restyle
This commit is contained in:
parent
91fd16e9b4
commit
736b98869f
|
@ -9,6 +9,20 @@ form.aui {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.select2-results{
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
&::-webkit-scrollbar-track-piece {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background-color: #3572b0;
|
||||||
|
}
|
||||||
|
}
|
||||||
.aui-select2-drop{
|
.aui-select2-drop{
|
||||||
z-index: 901;
|
z-index: 901;
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,6 +62,12 @@ function generateDevicesOptions(items, selectedId, permissionGranted) {
|
||||||
return options.join('');
|
return options.join('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Replace html select element to select2 custom dropdown
|
||||||
|
*
|
||||||
|
* @param {jQueryElement} $el native select element
|
||||||
|
* @param {function} onSelectedCb fired if item is selected
|
||||||
|
*/
|
||||||
function initSelect2($el, onSelectedCb) {
|
function initSelect2($el, onSelectedCb) {
|
||||||
$el.auiSelect2({
|
$el.auiSelect2({
|
||||||
minimumResultsForSearch: Infinity,
|
minimumResultsForSearch: Infinity,
|
||||||
|
|
Loading…
Reference in New Issue