Skip to content

Commit

Permalink
MDL-36752 Be more specific about tooltip selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Robert Nicols committed Nov 27, 2012
1 parent f6183fa commit 1ca16a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/javascript-static.js
Expand Up @@ -1425,7 +1425,7 @@ M.util.help_icon = {
return;
}
this.Y = Y;
Y.one('body').delegate('click', this.display, 'span.helplink a', this);
Y.one('body').delegate('click', this.display, 'span.helplink a.tooltip', this);
this.initialised = true;
},
add : function(Y, properties) {
Expand Down
2 changes: 1 addition & 1 deletion lib/outputrenderers.php
Expand Up @@ -1803,7 +1803,7 @@ protected function render_help_icon(help_icon $helpicon) {
// note: this title is displayed only if JS is disabled, otherwise the link will have the new ajax tooltip
$title = get_string('helpprefix2', '', trim($title, ". \t"));

$attributes = array('href'=>$url, 'title'=>$title, 'aria-haspopup' => 'true');
$attributes = array('href'=>$url, 'title'=>$title, 'aria-haspopup' => 'true', 'class' => 'tooltip');
$output = html_writer::tag('a', $output, $attributes);

$this->page->requires->js_init_call('M.util.help_icon.setup');
Expand Down

0 comments on commit 1ca16a9

Please sign in to comment.