[accessibility] add title on remove buttons in group_by widget

pull/6827/head
Romano Licker 13 years ago
parent 473c50355f
commit f90bf86c26
  1. 3
      assets/javascripts/reporting/group_bys.js

@ -44,6 +44,9 @@ Reporting.GroupBys = {
'class': 'group_by_remove in_row', 'class': 'group_by_remove in_row',
'id': group_by.identify() + '_remove' 'id': group_by.identify() + '_remove'
}); });
if (Reporting._LA != undefined) {
button.setAttribute('title', Reporting._LA["REMOVE"] + ' ' + group_by.down('label').innerHTML);
}
button.observe('mousedown', function() { Reporting.GroupBys.remove_group_by(button.up('.group_by_element')) }); button.observe('mousedown', function() { Reporting.GroupBys.remove_group_by(button.up('.group_by_element')) });
button.observe('keypress', function(e) { button.observe('keypress', function(e) {
var node; var node;

Loading…
Cancel
Save