Переглянути джерело

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 12 роки тому
батько
коміт
60c685070f
1 змінених файлів з 4 додано та 1 видалено
  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);