Skip to content

Commit

Permalink
Add preventDefault to prevent scroll after removal
Browse files Browse the repository at this point in the history
  • Loading branch information
charsbar committed Jun 19, 2024
1 parent 8d6cc0d commit 7d13334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tmpl/admin2023/wizard/configure.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ var database = new Array();
show_fields();

jQuery('#more').on('click', function(event) {
event.preventDefault();
jQuery('#advanced_fields').show();
jQuery(this).remove();
});
Expand Down
1 change: 1 addition & 0 deletions tmpl/wizard/configure.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ var database = new Array();
show_fields();

jQuery('#more').on('click', function(event) {
event.preventDefault();
jQuery('#advanced_fields').show();
jQuery(this).remove();
});
Expand Down

0 comments on commit 7d13334

Please sign in to comment.