dropdown restyle

This commit is contained in:
Kostiantyn Pashura 2016-10-18 18:31:52 +03:00
parent 91fd16e9b4
commit 736b98869f
2 changed files with 20 additions and 0 deletions

View File

@ -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{
z-index: 901;
}

View File

@ -62,6 +62,12 @@ function generateDevicesOptions(items, selectedId, permissionGranted) {
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) {
$el.auiSelect2({
minimumResultsForSearch: Infinity,