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:
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user