N°1877 & N°2012: Fix regression backup link on setup, security hardening

This commit is contained in:
Stephen Abello
2019-02-18 10:39:57 +01:00
parent bf62b63173
commit 6b5cc7ca4b
3 changed files with 33 additions and 13 deletions

View File

@@ -2,8 +2,9 @@ function WizardAsyncAction(sActionCode, oParams, OnErrorFunction)
{
var sStepClass = $('#_class').val();
var sStepState = $('#_state').val();
var sAuthent = $('#authent_token').val();
var oMap = { operation: 'async_action', step_class: sStepClass, step_state: sStepState, code: sActionCode, params: oParams };
var oMap = { operation: 'async_action', step_class: sStepClass, step_state: sStepState, code: sActionCode, authent : sAuthent, params: oParams };
var ErrorFn = OnErrorFunction;
$(document).ajaxError(function(event, request, settings) {
@@ -23,20 +24,20 @@ function WizardUpdateButtons()
{
if (CanMoveForward())
{
$("#btn_next").removeAttr("disabled");
$("#btn_next").prop("disabled", false);
}
else
{
$("#btn_next").attr("disabled", "disabled");
$("#btn_next").prop("disabled", true);
}
if (CanMoveBackward())
{
$("#btn_back").removeAttr("disabled");
$("#btn_back").prop("disabled", false);
}
else
{
$("#btn_back").attr("disabled", "disabled");
$("#btn_back").prop("disabled", true);
}
}