git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3019 a333f486-631f-4898-b8df-5754b55c2be0
@@ -301,11 +301,11 @@ function LinksWidget(id, sClass, sAttCode, iInputId, sSuffix, bDuplicates, oWizH
if (aMatches = this.name.match(re))
{
var idx = aMatches[1];
- var index = aIndexes.indexOf(idx);
+ var index = jQuery.inArray(idx, aIndexes);
if (index == -1)
aIndexes.push(idx);
- index = aIndexes.indexOf(idx);
+ index = jQuery.inArray(idx, aIndexes);
aValues[index] = {};
}
var value = $(this).val();
@@ -264,7 +264,7 @@ function ValidateWithPattern(sFieldId, bMandatory, sPattern, sFormId, aForbidden
$('#'+sFieldId).removeAttr('title');
// Remove the element from the array
- iFieldIdPos = oFormValidation[sFormId].indexOf(sFieldId);
+ iFieldIdPos = jQuery.inArray(sFieldId, oFormValidation[sFormId]);
if (iFieldIdPos > -1)
oFormValidation[sFormId].splice(iFieldIdPos, 1);