mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-12-26 19:51:30 +01:00
After delete the user will now redirected to home page (#7072)
This commit is contained in:
parent
43ceda1bfd
commit
01abebdc1d
@ -86,6 +86,8 @@ const padeditor = (() => {
|
||||
$('#delete-pad').on('click', () => {
|
||||
if (window.confirm(html10n.get('pad.delete.confirm'))) {
|
||||
pad.collabClient.sendMessage({type: 'PAD_DELETE', data:{padId: pad.getPadId()}});
|
||||
// redirect to home page after deletion
|
||||
window.location.href = '/';
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user