Accessibility: Open main tabs by keyboard focus

Regression caused by jQuery UI 1.9 upgrae
This commit is contained in:
Ingo Schommer 2013-06-15 12:23:51 +02:00
parent ad28a3adc2
commit 939773643a

View File

@ -1062,6 +1062,12 @@ jQuery.noConflict();
return false;
},
activate: function(e, ui) {
// Accessibility: Simulate click to trigger panel load when tab is focused
// by a keyboard navigation event rather than a click
if(ui.newTab) {
ui.newTab.find('.cms-panel-link').click();
}
// Usability: Hide actions for "readonly" tabs (which don't contain any editable fields)
var actions = $(this).closest('form').find('.Actions');
if($(ui.newTab).closest('li').hasClass('readonly')) {