Improved checkboxes and file input on import dialog.

This commit is contained in:
Jan Böhmer 2019-04-13 18:24:53 +02:00
parent 68aa750e00
commit fbfb0269d3
9 changed files with 72 additions and 16 deletions

View file

@ -614,7 +614,7 @@ BS 4 overrides
}
}
label:not(.form-check-label) {
label:not(.form-check-label, custom-control-label) {
font-weight: bold;
}

View file

@ -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');

View file

@ -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.