mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-04 02:05:16 +02:00
Improved checkboxes and file input on import dialog.
This commit is contained in:
parent
68aa750e00
commit
fbfb0269d3
9 changed files with 72 additions and 16 deletions
|
@ -614,7 +614,7 @@ BS 4 overrides
|
|||
}
|
||||
}
|
||||
|
||||
label:not(.form-check-label) {
|
||||
label:not(.form-check-label, custom-control-label) {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,8 @@ import 'awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css'
|
|||
|
||||
import "patternfly-bootstrap-treeview/src/css/bootstrap-treeview.css"
|
||||
|
||||
import "bootstrap-fileinput/css/fileinput.css"
|
||||
|
||||
//require( 'jszip' );
|
||||
//#require( 'pdfmake' );
|
||||
require( 'datatables.net-bs4' );
|
||||
|
@ -42,7 +44,9 @@ require('jquery-form');
|
|||
//Define jquery globally
|
||||
window.$ = window.jQuery = require("jquery");
|
||||
|
||||
require('patternfly-bootstrap-treeview/src/js/bootstrap-treeview')
|
||||
require('patternfly-bootstrap-treeview/src/js/bootstrap-treeview');
|
||||
|
||||
require('bootstrap-fileinput');
|
||||
|
||||
require('./datatables.js');
|
||||
|
||||
|
|
|
@ -212,6 +212,11 @@ $(document).on("ajaxUI:start ajaxUI:reload", function() {
|
|||
});
|
||||
});
|
||||
|
||||
//Re initialize fileinputs on reload
|
||||
$(document).on("ajaxUI:reload", function () {
|
||||
//@ts-ignore
|
||||
$(".file").fileinput();
|
||||
});
|
||||
|
||||
/**
|
||||
* Register the button, to jump to the top of the page.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue