mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
(ui) small javascript fix on help button behaviour
This commit is contained in:
parent
42c4019b96
commit
5a893de742
@ -207,12 +207,13 @@ function addMultiSelectClearUI() {
|
||||
*/
|
||||
function initFormHelpUI() {
|
||||
// handle help messages show/hide
|
||||
$("a[class='showhelp']").click(function () {
|
||||
$("a[class='showhelp']").click(function (event) {
|
||||
$("*[for='" + $(this).attr('id') + "']").toggleClass("hidden show");
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
// handle all help messages show/hide
|
||||
$('[id*="show_all_help"]').click(function() {
|
||||
$('[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")) {
|
||||
@ -222,6 +223,7 @@ function initFormHelpUI() {
|
||||
$('[for*="help_for"]').addClass("hidden");
|
||||
$('[for*="help_for"]').removeClass("show");
|
||||
}
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user