Add button to reset the user scripts configuration

Closes #3307
This commit is contained in:
emanuele-f 2020-01-24 11:09:48 +01:00
parent ae4a8bdca0
commit f8d09f7387
6 changed files with 45 additions and 10 deletions

View file

@ -27,6 +27,15 @@ const get_configuration_data = ($config_table, $button_caller) => {
}
}
const resetConfig = () => {
var params = {};
params.csrf = reset_csrf;
params.action = "reset_config";
var form = paramsToForm('<form method="post"></form>', params);
form.appendTo('body').submit();
}
$(document).ready(function() {
const add_columns = () => {