mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-30829 Accessibility: Docking a block disables the accessible anchors
This commit is contained in:
parent
71e12dc963
commit
5371fa1928
1 changed files with 12 additions and 0 deletions
|
@ -863,6 +863,12 @@ M.core_dock.genericblock.prototype = {
|
|||
return;
|
||||
}
|
||||
|
||||
// Disable the skip anchor when docking
|
||||
var skipanchor = node.previous();
|
||||
if (skipanchor.hasClass('skip-block')) {
|
||||
skipanchor.hide();
|
||||
}
|
||||
|
||||
var blockclass = (function(classes){
|
||||
var r = /(^|\s)(block_[a-zA-Z0-9_]+)(\s|$)/;
|
||||
var m = r.exec(classes);
|
||||
|
@ -937,6 +943,12 @@ M.core_dock.genericblock.prototype = {
|
|||
return_to_block : function(dockitem) {
|
||||
var placeholder = this.Y.one('#content_placeholder_'+this.id);
|
||||
|
||||
// Enable the skip anchor when going back to block mode
|
||||
var skipanchor = placeholder.previous();
|
||||
if (skipanchor.hasClass('skip-block')) {
|
||||
skipanchor.show();
|
||||
}
|
||||
|
||||
if (this.cachedcontentnode.one('.header')) {
|
||||
this.cachedcontentnode.one('.header').insert(dockitem.contents, 'after');
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue