Clicking help icon launches new page instead of AJAX popup

Clicking help icon launches new page instead of AJAX popup

by Mike Finch -
Number of replies: 4

In Moodle 3.0 and 3.3, when I click on a help icon, AJAX takes over and displays the help text in a popup balloon within that same page. 

In contrast, in Moodle 3.5, when I click on a help icon, a new page is launched (with a URL such as http://server/moodle/help.php?component=local_foo&identifier=howdy&lang=en) in a new browser window to display the help text.

Why does this happen in Moodle 3.5?  Is there a new setting that can toggle that behavior?  Or, some optional argument that can be passed to the function that renders the help icon?

In all versions of Moodle, I am using the Clean theme, in case that matters.

By help icon, I mean the small circle with a question mark in it that appears to the right of displayed text.  For example, the following draws a heading and a help icon.

echo $OUTPUT->heading_with_help( get_string( 'howdy', 'local_foo' ), 'howdy', 'local_foo' );

The result is (in ASCII art):

Howdy (?)
Average of ratings: -
In reply to Mike Finch

Re: Clicking help icon launches new page instead of AJAX popup

by Gerald G. -

Hello Mike,

do you have a solution for your problem?
We have the same issue with our child theme of the boost theme.

In reply to Gerald G.

Re: Clicking help icon launches new page instead of AJAX popup

by Dominique Palumbo -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Hi,

We use Moodle 3.5.2+ with a custom boost theme.
And it's work.

Are tou able to watch(see) in the browser console (firefox ->F12) if they've errors ?
Is it for all help tooltips or only for some ?
Which language do you use ?

Dominique.
In reply to Dominique Palumbo

Re: Clicking help icon launches new page instead of AJAX popup

by Gerald G. -
Thank you for your answer.
I made a little mistake in my posting, our child theme is based on the essential theme.

Concerning your question, we have no error which points to the problem.
There is only a MIME-Type Error from the font-awesome.css.
It is for all help tooltips.
It seem like there is a problem with the tooltip function, maybe bootstrap?

We use english and german.

Gerald
In reply to Gerald G.

Re: Clicking help icon launches new page instead of AJAX popup

by Dominique Palumbo -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Hi,

yes, it can be a problem with multiple Boostrap versions. When you watch which js/css that are loaded in the network tab of the browser do you see other version of boostrap loaded too ? or something like tooltips.js.

I ask language because it can be some specials characters that cause problem but I suppose the problem stay even if you switch in english.