]> cat aescling's git repositories - mastodon.git/commit
Show confirmation dialog on leaving WebUI while composing (#5616)
authorunarist <m.unarist@gmail.com>
Thu, 9 Nov 2017 13:34:41 +0000 (22:34 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 9 Nov 2017 13:34:41 +0000 (14:34 +0100)
commit49a285ce15cc206757254a1f23f19d5da265b127
treee26de058aea14659697f0a0f97a6c920da4885e7
parentcfd7b7a0b7f97a822cb80de8cbd4e33a07065cc7
Show confirmation dialog on leaving WebUI while composing (#5616)

* Show confirmation dialog on leaving WebUI while composing

Currently, Back button and Back hotkey can cause leaving from WebUI, as well as browser's back button. Users may hit those buttons accidentally, and their composing text will be lost.

So this prevents it by showing confirmation dialog from `onbeforeunload` event.

* Fix message and comments
app/javascript/mastodon/features/ui/index.js