diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-09 23:05:55 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-09 23:05:55 +0200 |
commit | 8886f16a767e1f74b270befb4342857eeacc0fc6 (patch) | |
tree | 2c1812dad61cd0015b6c98f0bcede318f5e0c35c /core/migrations.php | |
parent | 4227d89a75104b643e1f97a42cbb19c4ba65113f (diff) | |
download | blog-8886f16a767e1f74b270befb4342857eeacc0fc6.tar.gz blog-8886f16a767e1f74b270befb4342857eeacc0fc6.tar.xz blog-8886f16a767e1f74b270befb4342857eeacc0fc6.zip |
Detect unsaved changes in content editor
This commit adds a bit of JavaScript code to detect unsaved changes in
the content editor when trying to leave the page. The browser's default
confirmation dialog is shown when unsaved changes are detected.
This currently only covers the textarea of the content editor, not the
other form fields. There may be a better solution (like LocalStorage),
but it works for the moment. I'll add it to my TODO list...
Diffstat (limited to 'core/migrations.php')
0 files changed, 0 insertions, 0 deletions