Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-36752 Be more specific about tooltip selectors

  • Loading branch information...
commit 1ca16a9b593ea9f720cdd2adecc81ecf55077c33 1 parent f6183fa
Andrew Nicols andrewnicols authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  lib/javascript-static.js
  2. +1 1  lib/outputrenderers.php
2  lib/javascript-static.js
@@ -1425,7 +1425,7 @@ M.util.help_icon = {
1425 1425 return;
1426 1426 }
1427 1427 this.Y = Y;
1428   - Y.one('body').delegate('click', this.display, 'span.helplink a', this);
  1428 + Y.one('body').delegate('click', this.display, 'span.helplink a.tooltip', this);
1429 1429 this.initialised = true;
1430 1430 },
1431 1431 add : function(Y, properties) {
2  lib/outputrenderers.php
@@ -1803,7 +1803,7 @@ protected function render_help_icon(help_icon $helpicon) {
1803 1803 // note: this title is displayed only if JS is disabled, otherwise the link will have the new ajax tooltip
1804 1804 $title = get_string('helpprefix2', '', trim($title, ". \t"));
1805 1805
1806   - $attributes = array('href'=>$url, 'title'=>$title, 'aria-haspopup' => 'true');
  1806 + $attributes = array('href'=>$url, 'title'=>$title, 'aria-haspopup' => 'true', 'class' => 'tooltip');
1807 1807 $output = html_writer::tag('a', $output, $attributes);
1808 1808
1809 1809 $this->page->requires->js_init_call('M.util.help_icon.setup');

0 comments on commit 1ca16a9

Please sign in to comment.
Something went wrong with that request. Please try again.