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
|
@ -45,6 +45,9 @@ import "./datatables";
|
|||
//import "./tab_remember";
|
||||
import "./register_events";
|
||||
|
||||
//Define jquery globally
|
||||
window.$ = window.jQuery = require("jquery")
|
||||
|
||||
/**
|
||||
|
||||
require('bootstrap-select');
|
||||
|
@ -52,8 +55,7 @@ require('jquery-form');
|
|||
require('corejs-typeahead/dist/typeahead.bundle.min');
|
||||
window.Bloodhound = require('corejs-typeahead/dist/bloodhound.js');
|
||||
|
||||
//Define jquery globally
|
||||
window.$ = window.jQuery = require("jquery");
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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