mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°1877 & N°2012: Fix regression backup link on setup, security hardening
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user