Преглед на файлове

Cosmetic: improved the feedback when an attribute edition control is being refreshed in the console

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3995 a333f486-631f-4898-b8df-5754b55c2be0
romainq преди 9 години
родител
ревизия
92ee0898df
променени са 1 файла, в които са добавени 8 реда и са изтрити 3 реда
  1. 8 3
      js/wizardhelper.js

+ 8 - 3
js/wizardhelper.js

@@ -209,9 +209,14 @@ function WizardHelper(sClass, sFormPrefix, sState)
 		{
 			sAttCode = aFieldNames[index];
 			sFieldId = this.GetFieldId(sAttCode);
-			$('#fstatus_'+sFieldId).html('<img src="../images/indicator.gif" />');
-			$('#field_'+sFieldId).closest('td').block({message:''});
-			this.RequestAllowedValues(sAttCode);
+			if (sFieldId !== undefined) {
+				$('#fstatus_' + sFieldId).html('<img src="../images/indicator.gif" />');
+				$('#field_' + sFieldId).find('div').block({
+					message: '',
+					overlayCSS: {backgroundColor: '#f1f1f1', opacity: 0.3}
+				});
+				this.RequestAllowedValues(sAttCode);
+			}
 			index++;
 		}
 		this.AjaxQueryServer();