Skip to content

Commit

Permalink
chore(js): confirm js was missing a function param
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Mar 26, 2024
1 parent d3cf5c1 commit b7286a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/default/elgg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ elgg.get_simplecache_url = function(view, subview) {
return elgg.normalize_url(path);
};

$(document).on('click', '*[data-confirm]', function() {
$(document).on('click', '*[data-confirm]', function(e) {
var confirmText = $(this).data('confirm');
if (!confirm(confirmText)) {
e.preventDefault();
Expand Down

0 comments on commit b7286a6

Please sign in to comment.