Skip to content

Commit

Permalink
disabling leave page warning after submit button clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
d3netxer committed Oct 6, 2023
1 parent 3c3da01 commit f4d3e12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ baseurl: ''
#exclude: [src, CNAME, "2012", "2013"]
#markdown: kramdown
api: 'https://script.google.com/macros/s/AKfycbyUhpTZp0iDiFvi1ckLheEUklMa9AE-HAnaJJPv0VC6Pv1UpiLhehuRRralr1BmullG/exec'
source: _source
#source: _source
future: true

# Analytics
Expand Down
3 changes: 3 additions & 0 deletions form/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,9 @@ <h3>Error in submitting form, please e-mail us at <a href="mailto:info@teachosm.

// Prevent default posting of form
// event.preventDefault();

// After successful form submission, remove the beforeunload listener
window.removeEventListener('beforeunload', beforeUnloadListener);

});

Expand Down

0 comments on commit f4d3e12

Please sign in to comment.