git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2795 a333f486-631f-4898-b8df-5754b55c2be0
@@ -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);