mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
# Conflicts: # composer.lock # js/wizardhelper.js # lib/composer/autoload_real.php # lib/composer/installed.json # lib/composer/installed.php # lib/guzzlehttp/guzzle/CHANGELOG.md # setup/wizardsteps.class.inc.php
This commit is contained in:
@@ -176,6 +176,9 @@ function WizardHelper(sClass, sFormPrefix, sState, sInitialState, sStimulus) {
|
||||
var sString = "$('#"+aRefreshed[i]+"').trigger('change').trigger('update');";
|
||||
window.setTimeout(sString, 1); // Synchronous 'trigger' does nothing, call it asynchronously
|
||||
}
|
||||
if($('.blockUI').length == 0) {
|
||||
$('.disabledDuringFieldLoading').prop("disabled", false).removeClass('disabledDuringFieldLoading');
|
||||
}
|
||||
};
|
||||
|
||||
this.UpdateWizard = function () {
|
||||
@@ -201,6 +204,10 @@ function WizardHelper(sClass, sFormPrefix, sState, sInitialState, sStimulus) {
|
||||
function (html) {
|
||||
$('#ajax_content').html(html);
|
||||
$('.blockUI').parent().unblock();
|
||||
|
||||
if($('.blockUI').length == 0) {
|
||||
$('.disabledDuringFieldLoading').prop("disabled", false).removeClass('disabledDuringFieldLoading');
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
@@ -235,6 +242,7 @@ function WizardHelper(sClass, sFormPrefix, sState, sInitialState, sStimulus) {
|
||||
|
||||
this.ResetQuery();
|
||||
this.UpdateWizard();
|
||||
var fieldForm=null;
|
||||
while (index < aFieldNames.length)
|
||||
{
|
||||
sAttCode = aFieldNames[index];
|
||||
@@ -247,11 +255,16 @@ function WizardHelper(sClass, sFormPrefix, sState, sInitialState, sStimulus) {
|
||||
message: '',
|
||||
overlayCSS: {backgroundColor: '#f1f1f1', opacity: 0.3}
|
||||
});
|
||||
fieldForm=$('#field_' + sFieldId).closest('form');
|
||||
this.RequestAllowedValues(sAttCode);
|
||||
}
|
||||
index++;
|
||||
}
|
||||
|
||||
if(fieldForm!=null){
|
||||
fieldForm.find('button[type=submit]:not(:disabled)').prop("disabled", true).addClass('disabledDuringFieldLoading');
|
||||
}
|
||||
|
||||
if (nbOfFieldsToUpdate > 0)
|
||||
{
|
||||
this.AjaxQueryServer();
|
||||
|
||||
Reference in New Issue
Block a user