mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
MDL-35832 - Accessibility - Adding more precise context sensitive title text to undock controls on docked blocks
This commit is contained in:
parent
1918a2452e
commit
b9271ffd94
@ -906,7 +906,7 @@ M.core_dock.genericblock.prototype = {
|
||||
}
|
||||
|
||||
// Must set the image src seperatly of we get an error with XML strict headers
|
||||
var movetoimg = Y.Node.create('<img alt="'+M.str.block.undockitem+'" title="'+M.str.block.undockitem+'" />');
|
||||
var movetoimg = Y.Node.create('<img alt="'+M.str.block.undockitem+'" title="'+M.util.get_string('undockblock', 'block', blocktitle.innerHTML)+'" />');
|
||||
var icon = 't/dock_to_block';
|
||||
if (right_to_left()) {
|
||||
icon = 't/dock_to_block_rtl';
|
||||
|
@ -63,6 +63,7 @@ $string['subpages'] = 'Select pages';
|
||||
$string['restrictpagetypes'] = 'Display on page types';
|
||||
$string['thisspecificpage'] = 'This specific page';
|
||||
$string['undockall'] = 'Undock all';
|
||||
$string['undockblock'] = 'Undock {$a} block';
|
||||
$string['undockitem'] = 'Undock this item';
|
||||
$string['visible'] = 'Visible';
|
||||
$string['weight'] = 'Weight';
|
||||
|
@ -407,7 +407,7 @@ class page_requirements_manager {
|
||||
$module = array('name' => 'core_dock',
|
||||
'fullpath' => '/blocks/dock.js',
|
||||
'requires' => array('base', 'node', 'event-custom', 'event-mouseenter', 'event-resize'),
|
||||
'strings' => array(array('addtodock', 'block'),array('undockitem', 'block'),array('undockall', 'block'),array('thisdirectionvertical', 'langconfig'),array('hidedockpanel', 'block'),array('hidepanel', 'block')));
|
||||
'strings' => array(array('addtodock', 'block'),array('undockitem', 'block'),array('undockblock', 'block'),array('undockall', 'block'),array('thisdirectionvertical', 'langconfig'),array('hidedockpanel', 'block'),array('hidepanel', 'block')));
|
||||
break;
|
||||
case 'core_message':
|
||||
$module = array('name' => 'core_message',
|
||||
|
Loading…
x
Reference in New Issue
Block a user