Explorar o código

Forms: added the possibility to specify forbidden values + message to explain the issue(toolip) (fiwed a bug on the previous implementation, causing a javascript error, hence a stopper regression due to missing event binds)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2795 a333f486-631f-4898-b8df-5754b55c2be0
romainq %!s(int64=12) %!d(string=hai) anos
pai
achega
60c685070f
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      js/property_field.js

+ 4 - 1
js/property_field.js

@@ -258,7 +258,10 @@ function ValidateWithPattern(sFieldId, bMandatory, sPattern, sFormId, aForbidden
 	else
 	{
 		$('#v_'+sFieldId).removeClass('ui-state-error');
-		$('#'+sFieldId).tooltip('close');
+		if ($('#'+sFieldId).data('uiTooltip'))
+		{
+			$('#'+sFieldId).tooltip('close');
+		}
 		$('#'+sFieldId).removeAttr('title');
 		// Remove the element from the array 
 		iFieldIdPos = oFormValidation[sFormId].indexOf(sFieldId);