Commit db34349f authored by Son Nguyen's avatar Son Nguyen
Browse files

Bug 1609142: Fix click event handler for contextual help

behatnotneeded

Change-Id: I7675dbc105cf73a9eb3960529c582acffb8aad26
parent e50d1613
......@@ -538,7 +538,7 @@ function contextualHelp(formName, helpName, pluginType, pluginName, page, sectio
function buildContextualHelpBox(content) {
contextualHelpContainer.html(
'<div class="pull-right pts">' +
'<a href="" class="help-dismiss">' +
'<a href="" class="help-dismiss" onclick="return false;">' +
'<span class="icon icon-remove"></span>' +
'<span class="sr-only">' + get_string('closehelp') + '</span>' +
'</a>' +
......@@ -549,6 +549,7 @@ function buildContextualHelpBox(content) {
jQuery('#helpstop').click(function(e) {
if (e.target.nodeName != "A") {
e.preventDefault();
e.stopPropagation();
}
});
contextualHelpContainer.find('.help-dismiss').focus();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment