MDL-28235 form: Help button popup close accessibility improved

AMOS BEGIN
 CPY [close,editor],[close,form]
AMOS END
This commit is contained in:
Frederic Massart
2012-10-02 14:36:30 +08:00
parent 9273bd1abb
commit bbb553e077
4 changed files with 11 additions and 2 deletions
+2
View File
@@ -1733,6 +1733,7 @@ class core_renderer extends renderer_base {
$output = html_writer::tag('a', $output, $attributes);
$this->page->requires->js_init_call('M.util.help_icon.add', array(array('id'=>$id, 'url'=>$url->out(false))));
$this->page->requires->string_for_js('close', 'form');
// and finally span
return html_writer::tag('span', $output, array('class' => 'helplink'));
@@ -1798,6 +1799,7 @@ class core_renderer extends renderer_base {
$output = html_writer::tag('a', $output, $attributes);
$this->page->requires->js_init_call('M.util.help_icon.add', array(array('id'=>$id, 'url'=>$url->out(false))));
$this->page->requires->string_for_js('close', 'form');
// and finally span
return html_writer::tag('span', $output, array('class' => 'helplink'));