[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.
*/
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;
};