Permalink
Browse files

MDL-36752 Be more specific about tooltip selectors

  • Loading branch information...
1 parent f6183fa commit 1ca16a9b593ea9f720cdd2adecc81ecf55077c33 @andrewnicols andrewnicols committed Nov 27, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/javascript-static.js
  2. +1 −1 lib/outputrenderers.php
View
2 lib/javascript-static.js
@@ -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) {
View
2 lib/outputrenderers.php
@@ -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');

0 comments on commit 1ca16a9

Please sign in to comment.