mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/12124] IE8 does not support indexOf() for arrays.
PHPBB3-12124
This commit is contained in:
parent
53ef25e837
commit
d32b758428
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue