enhance browser compability

pull/6827/head
Philipp Tessenow 14 years ago
parent 26bbbebc9e
commit e87d41ae9b
  1. 2
      assets/javascripts/reporting/filters.js
  2. 7
      assets/javascripts/reporting/group_bys.js

@ -237,7 +237,7 @@ Reporting.Filters = {
// Param: select [optional] - the select-box of the filter which should activate it's dependents
activate_dependents: function (selectBox, callbackWhenFinished) {
var dependents, active_filters, source;
if (selectBox === undefined || selectBox.type == 'change') {
if (selectBox === undefined || selectBox.type.toLowerCase() == 'change') {
selectBox = this;
}
if (callbackWhenFinished === undefined) {

@ -72,8 +72,11 @@ Reporting.GroupBys = {
create_group_by: function(field) {
group_by = document.createElement('span');
group_by.className = 'in_row drag_element group_by_element';
group_by.id = field;
%w('in_row drag_element group_by_element').each(function(klass) {
group_by.addClassName(klass);
});
group_by.identify(); // give it a unique id
group_by.writeAttribute('data-group-by', field);
return group_by;
},

Loading…
Cancel
Save