summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-27 05:42:10 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-27 05:42:10 +0000
commitfe832071d44d14579b3f19111ec3eb835cc47740 (patch)
tree1378cfbececff97f74f5d396e8ccc7dc712d3a42
parent9c3543ac3f09607ecf041488fc0edaa28ef4abe7 (diff)
downloadredmine-fe832071d44d14579b3f19111ec3eb835cc47740.tar.gz
redmine-fe832071d44d14579b3f19111ec3eb835cc47740.zip
fix broken issue list filter (#11885)
Array indexOf() is not defined on IE8. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10487 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--public/javascripts/application.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index a5e5f7d8e..5fa9366a7 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -152,10 +152,10 @@ function buildFilterRow(field, operator, values) {
var option = $('<option>');
if ($.isArray(filterValue)) {
option.val(filterValue[1]).text(filterValue[0]);
- if (values.indexOf(filterValue[1]) > -1) {option.attr('selected', true);}
+ if ($.inArray(filterValue[1], values) > -1) {option.attr('selected', true);}
} else {
option.val(filterValue).text(filterValue);
- if (values.indexOf(filterValue) > -1) {option.attr('selected', true);}
+ if ($.inArray(filterValue, values) > -1) {option.attr('selected', true);}
}
select.append(option);
}
@@ -204,7 +204,7 @@ function toggleFilter(field) {
function enableValues(field, indexes) {
var fieldId = field.replace('.', '_');
$('#tr_'+fieldId+' td.values .value').each(function(index) {
- if (indexes.indexOf(index) >= 0) {
+ if ($.inArray(index, indexes) >= 0) {
$(this).removeAttr('disabled');
$(this).parents('span').first().show();
} else {