Enable select2

This commit is contained in:
Igor Scheller 2020-10-20 16:07:34 +02:00 committed by msquare
parent dbca216403
commit 00f812fb77
2 changed files with 16 additions and 0 deletions

View File

@ -1,4 +1,5 @@
const moment = require('moment');
require('select2')
/**
* Sets all checkboxes to the wanted state
@ -171,6 +172,15 @@ $(function () {
});
});
/**
* Enable select2
*/
$(function () {
$.fn.select2.defaults.set('theme', 'bootstrap');
$('select').select2();
});
/**
* Set the filter selects to latest state
*

View File

@ -1,5 +1,7 @@
@import "../../../node_modules/bootstrap/less/bootstrap";
@import "../../../node_modules/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css";
@import "../../../node_modules/select2/dist/css/select2.min.css";
@import "../../../node_modules/select2-bootstrap-theme/src/select2-bootstrap.less";
@import "error";
body {
@ -141,6 +143,10 @@ table a > .icon-icon_angel {
background-color: @panel-danger-heading-bg;
}
.select2-dropdown {
background-color: @brand-primary;
}
.selection .checkbox {
display: block;
}