From b9271ffd94d7198bc6ce2d5b413b5feee403f866 Mon Sep 17 00:00:00 2001 From: Jason Fowler Date: Fri, 1 Feb 2013 13:51:24 +0800 Subject: [PATCH] MDL-35832 - Accessibility - Adding more precise context sensitive title text to undock controls on docked blocks --- blocks/dock.js | 2 +- lang/en/block.php | 1 + lib/outputrequirementslib.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/blocks/dock.js b/blocks/dock.js index 46c047932e194..d555668bec803 100644 --- a/blocks/dock.js +++ b/blocks/dock.js @@ -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(''+M.str.block.undockitem+''); + var movetoimg = Y.Node.create(''+M.str.block.undockitem+''); var icon = 't/dock_to_block'; if (right_to_left()) { icon = 't/dock_to_block_rtl'; diff --git a/lang/en/block.php b/lang/en/block.php index 0a1a1b21cab2e..8e7d0c00e88bc 100644 --- a/lang/en/block.php +++ b/lang/en/block.php @@ -63,6 +63,7 @@ $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'; diff --git a/lib/outputrequirementslib.php b/lib/outputrequirementslib.php index d4eff1ccc2a60..db3c0198101b0 100644 --- a/lib/outputrequirementslib.php +++ b/lib/outputrequirementslib.php @@ -407,7 +407,7 @@ protected function find_module($component) { $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',