mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Accessibility: Open main tabs by keyboard focus
Regression caused by jQuery UI 1.9 upgrae
This commit is contained in:
parent
ad28a3adc2
commit
939773643a
@ -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')) {
|
||||
|
Loading…
Reference in New Issue
Block a user