aboutsummaryrefslogtreecommitdiffstats
path: root/theme/admin/html/post
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-07-09 23:05:55 +0200
committerThomas Lange <code@nerdmind.de>2021-07-09 23:05:55 +0200
commit8886f16a767e1f74b270befb4342857eeacc0fc6 (patch)
tree2c1812dad61cd0015b6c98f0bcede318f5e0c35c /theme/admin/html/post
parent4227d89a75104b643e1f97a42cbb19c4ba65113f (diff)
downloadblog-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 'theme/admin/html/post')
0 files changed, 0 insertions, 0 deletions