mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 05:24:28 +02:00
Added infos about 2FA and possibilities to disable them all on user admin page.
This commit is contained in:
parent
b5e80ec1b7
commit
b4958cbaf8
5 changed files with 106 additions and 11 deletions
|
@ -185,7 +185,7 @@ $(document).on("ajaxUI:start ajaxUI:reload", function() {
|
|||
});
|
||||
|
||||
$(document).on("ajaxUI:start ajaxUI:reload", function() {
|
||||
$("[data-delete-form]").unbind('submit').submit(function(event) {
|
||||
$("[data-delete-form]").unbind('submit').submit(function (event) {
|
||||
event.preventDefault();
|
||||
|
||||
let form = this;
|
||||
|
@ -197,17 +197,38 @@ $(document).on("ajaxUI:start ajaxUI:reload", function() {
|
|||
let message = $(this).data("message");
|
||||
|
||||
bootbox.confirm({
|
||||
message: message,
|
||||
title: title,
|
||||
callback: function(result) {
|
||||
message: message, title: title, callback: function (result) {
|
||||
//If the dialog was confirmed, then submit the form.
|
||||
if(result) {
|
||||
if (result) {
|
||||
ajaxUI.submitForm(form, btn);
|
||||
}
|
||||
}});
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
//Register for forms with delete-buttons
|
||||
$("[data-delete-btn]").parents('form').unbind('submit').submit(function (event) {
|
||||
event.preventDefault();
|
||||
let form = this;
|
||||
//Get the submit button
|
||||
let btn = document.activeElement;
|
||||
|
||||
let title = $(btn).data("title");
|
||||
let message = $(btn).data("message");
|
||||
|
||||
bootbox.confirm({
|
||||
message: message, title: title, callback: function (result) {
|
||||
//If the dialog was confirmed, then submit the form.
|
||||
if (result) {
|
||||
ajaxUI.submitForm(form, btn);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$(document).on("ajaxUI:start ajaxUI:reload", function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue