diff options
Diffstat (limited to 'views/event.handlebars')
| -rwxr-xr-x | views/event.handlebars | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/views/event.handlebars b/views/event.handlebars index ae6674a..f4f1a2e 100755 --- a/views/event.handlebars +++ b/views/event.handlebars @@ -423,9 +423,9 @@ window.eventData = {{{ json jsonData }}};      $(this).closest(".comment").find(".replyContainer").slideToggle();    })    $(document).ready(function() { -      // Save the editing token from the URL, if it is valid      const eventID = $('#eventName').attr('data-event-id'); +    const url = new URL(window.location.href);      const urlParams = new URLSearchParams(window.location.search);      if (urlParams.has('e')) {        $.ajax({ @@ -463,6 +463,8 @@ window.eventData = {{{ json jsonData }}};      if (urlParams.has('show_edit')) {        $('#editModal').modal('show'); +      url.searchParams.delete('show_edit');  +      history.replaceState(history.state, '', url.href);      }      // From https://davidwalsh.name/javascript-download  | 
