Skip to content

Commit

Permalink
replaced return false by event.preventDefault();
Browse files Browse the repository at this point in the history
  • Loading branch information
judovana committed Oct 17, 2024
1 parent 660b2b2 commit 981edaf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// <![CDATA[

function nvwp_showHide_button_2_1_show() {
function nvwp_showHide_button_2_1_show(event) {
document.getElementById('button_expand_2_1').style.display = 'none';
document.getElementById('button_collapse_2_1').style.display = 'inline';
document.getElementById('details_2_1').style.display = 'block';
return false;
event.preventDefault();
}
function nvwp_showHide_button_2_1_hide() {
function nvwp_showHide_button_2_1_hide(event) {
document.getElementById('button_collapse_2_1').style.display = 'none';
document.getElementById('details_2_1').style.display = 'none';
document.getElementById('button_expand_2_1').style.display = 'inline';
return false;
event.preventDefault();
}

const exEl = document.getElementById("button_expand_2_1");
Expand Down

0 comments on commit 981edaf

Please sign in to comment.