From dc2f0601715a65f998349cbdec4a2888338f5921 Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Wed, 30 Mar 2011 15:09:35 +0200 Subject: [PATCH] Made check for element name IE and Opera compatible. --- assets/javascripts/reporting/filters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/reporting/filters.js b/assets/javascripts/reporting/filters.js index 5978cebca9..d43e4090ae 100644 --- a/assets/javascripts/reporting/filters.js +++ b/assets/javascripts/reporting/filters.js @@ -26,13 +26,13 @@ Reporting.Filters = { callback_func(); } // select first option by default - if (select.localName === "div") { + if (select.tagName.toLowerCase() === "div") { // check if we might have a radio-box radio_options = $$('.' + filter_name + '_radio_option input'); if (radio_options && radio_options.size() !== 0) { radio_options.first().checked = true; } - } else if (select.localName === "select") { + } else if (select.tagName.toLowerCase() === "select") { select.selectedIndex = 0; } },