From f90bf86c264a5d7c5ccf39fca9e00f8f5b87ba5b Mon Sep 17 00:00:00 2001 From: Romano Licker Date: Mon, 28 Nov 2011 14:07:05 +0100 Subject: [PATCH] [accessibility] add title on remove buttons in group_by widget --- assets/javascripts/reporting/group_bys.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/javascripts/reporting/group_bys.js b/assets/javascripts/reporting/group_bys.js index 03a8098c7c..db38df14f7 100644 --- a/assets/javascripts/reporting/group_bys.js +++ b/assets/javascripts/reporting/group_bys.js @@ -44,6 +44,9 @@ Reporting.GroupBys = { 'class': 'group_by_remove in_row', '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('keypress', function(e) { var node;