mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 01:34:34 +02:00
Allow to change the permissions for users.
This commit is contained in:
parent
8e61b06abc
commit
7390f2eccd
18 changed files with 933 additions and 8 deletions
|
@ -260,7 +260,7 @@ class AjaxUI {
|
|||
{
|
||||
return {
|
||||
success: this.onAjaxComplete,
|
||||
beforeSerialize: function() : boolean {
|
||||
beforeSerialize: function($form, options) : boolean {
|
||||
|
||||
//Update the content of textarea fields using CKEDITOR before submitting.
|
||||
//@ts-ignore
|
||||
|
@ -272,6 +272,9 @@ class AjaxUI {
|
|||
}
|
||||
}
|
||||
|
||||
//Check every checkbox field, so that it will be submitted (only valid fields are submitted)
|
||||
$form.find("input[type=checkbox].tristate").prop('checked', true);
|
||||
|
||||
return true;
|
||||
},
|
||||
beforeSubmit: function (arr, $form, options) : boolean {
|
||||
|
|
|
@ -212,6 +212,15 @@ $(document).on("ajaxUI:start ajaxUI:reload", function() {
|
|||
});
|
||||
});
|
||||
|
||||
$(document).on("ajaxUI:start ajaxUI:reload", function() {
|
||||
//@ts-ignore
|
||||
$(".tristate").tristate( {
|
||||
checked: "true",
|
||||
unchecked: "false",
|
||||
indeterminate: "indeterminate",
|
||||
});
|
||||
});
|
||||
|
||||
//Re initialize fileinputs on reload
|
||||
$(document).on("ajaxUI:reload", function () {
|
||||
//@ts-ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue