1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-28 12:30:42 +02:00

[ticket/12124] IE8 does not support indexOf() for arrays.

PHPBB3-12124
This commit is contained in:
Cesar G
2014-01-28 15:47:43 -08:00
parent 53ef25e837
commit d32b758428

View File

@@ -97,7 +97,7 @@ phpbb.plupload.getSerializedData = function() {
* @return int Returns the index of the file if it exists. * @return int Returns the index of the file if it exists.
*/ */
phpbb.plupload.getIndex = function(attach_id) { phpbb.plupload.getIndex = function(attach_id) {
var index = phpbb.plupload.ids.indexOf(Number(attach_id)); var index = $.inArray(Number(attach_id), phpbb.plupload.ids);
return (index !== -1) ? index : false; return (index !== -1) ? index : false;
}; };