Ver Fonte

Different display for 'Date' fields: shorter field than DateTime since there is no "time" part.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1466 a333f486-631f-4898-b8df-5754b55c2be0
dflaven há 14 anos atrás
pai
commit
218e26c3a4
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      application/cmdbabstract.class.inc.php

+ 6 - 0
application/cmdbabstract.class.inc.php

@@ -1448,6 +1448,12 @@ EOF
 			switch($oAttDef->GetEditClass())
 			{
 				case 'Date':
+				$aEventsList[] ='validate';
+				$aEventsList[] ='keyup';
+				$aEventsList[] ='change';
+				$sHTMLValue = "<input title=\"$sHelpText\" class=\"date-pick\" type=\"text\" size=\"12\" name=\"attr_{$sFieldPrefix}{$sAttCode}{$sNameSuffix}\" value=\"$value\" id=\"$iId\"/>&nbsp;{$sValidationField}";
+				break;
+
 				case 'DateTime':
 				$aEventsList[] ='validate';
 				$aEventsList[] ='keyup';