mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Use jQuery.inArray() instead of array.indexOf() to be compatible with IE8
SVN:trunk[3019]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user