From 2d05b110b87e8be8740444442c1f7cd6fa6549dc Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Mon, 11 Apr 2016 19:02:54 +0000 Subject: [PATCH] Cosmetic: improved the feedback when an attribute edition control is being refreshed in the console SVN:trunk[3995] --- js/wizardhelper.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/js/wizardhelper.js b/js/wizardhelper.js index 2b3b1f1a8..ef36ba202 100644 --- a/js/wizardhelper.js +++ b/js/wizardhelper.js @@ -209,9 +209,14 @@ function WizardHelper(sClass, sFormPrefix, sState) { sAttCode = aFieldNames[index]; sFieldId = this.GetFieldId(sAttCode); - $('#fstatus_'+sFieldId).html(''); - $('#field_'+sFieldId).closest('td').block({message:''}); - this.RequestAllowedValues(sAttCode); + if (sFieldId !== undefined) { + $('#fstatus_' + sFieldId).html(''); + $('#field_' + sFieldId).find('div').block({ + message: '', + overlayCSS: {backgroundColor: '#f1f1f1', opacity: 0.3} + }); + this.RequestAllowedValues(sAttCode); + } index++; } this.AjaxQueryServer();