Commit 09d6aacc authored by Ad Schellevis's avatar Ad Schellevis

(legacy) backport show all help button behaviour to legacy code

parent 5a893de7
......@@ -100,9 +100,23 @@ $pagetitle = gentitle( $pgtitle );
// link showhelp class behavior
$("a[class='showhelp']").click(function (event) {
$("*[for='" + $(this).attr('id') + "']").toggleClass("hidden show");
event.preventDefault();
});
$("*[for='" + $(this).attr('id') + "']").toggleClass("hidden show");
event.preventDefault();
});
// handle all help messages show/hide
$('[id*="show_all_help"]').click(function(event) {
$('[id*="show_all_help"]').toggleClass("fa-toggle-on fa-toggle-off");
$('[id*="show_all_help"]').toggleClass("text-success text-danger");
if ($('[id*="show_all_help"]').hasClass("fa-toggle-on")) {
$('[for*="help_for"]').addClass("show");
$('[for*="help_for"]').removeClass("hidden");
} else {
$('[for*="help_for"]').addClass("hidden");
$('[for*="help_for"]').removeClass("show");
}
event.preventDefault();
});
});
//]]>
......
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