mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +02:00
Initialize selectpicker via stimulus controller.
This commit is contained in:
parent
f1ea25cad2
commit
f276c436ae
16 changed files with 31 additions and 32 deletions
|
@ -1,11 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
//CSS
|
||||
import 'bootstrap-select/dist/css/bootstrap-select.css'
|
||||
import "bootstrap-fileinput/css/fileinput.css"
|
||||
|
||||
//JS
|
||||
import "bootstrap-select";
|
||||
|
||||
import "./lib/jquery.tristate"
|
||||
import "bootstrap-fileinput";
|
||||
|
||||
|
@ -24,8 +23,6 @@ const RegisterEventHelper = class {
|
|||
|
||||
this.registerTriStateCheckboxes();
|
||||
|
||||
this.registerBootstrapSelectPicker();
|
||||
|
||||
this.registerSpecialCharInput();
|
||||
this.registerHoverPics();
|
||||
|
||||
|
@ -99,16 +96,7 @@ const RegisterEventHelper = class {
|
|||
});
|
||||
})
|
||||
}
|
||||
|
||||
registerBootstrapSelectPicker() {
|
||||
this.registerLoadHandler(() => {
|
||||
$(".selectpicker").selectpicker({
|
||||
dropdownAlignRight: 'auto',
|
||||
container: '#content',
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
registerAutocompleteTagsinput() {
|
||||
this.registerLoadHandler(() => {
|
||||
$('input.tagsinput').each(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue