mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Add userLeave hook
This commit is contained in:
parent
bc5dc74f90
commit
9dd6471921
1 changed files with 3 additions and 0 deletions
|
@ -633,6 +633,9 @@ var paduserlist = (function()
|
||||||
otherUsersInfo.splice(newExistingIndex, 1);
|
otherUsersInfo.splice(newExistingIndex, 1);
|
||||||
otherUsersData.splice(newExistingIndex, 1);
|
otherUsersData.splice(newExistingIndex, 1);
|
||||||
rowManager.removeRow(newExistingIndex);
|
rowManager.removeRow(newExistingIndex);
|
||||||
|
hooks.callAll('userLeave', {
|
||||||
|
userInfo: info
|
||||||
|
});
|
||||||
updateInviteNotice();
|
updateInviteNotice();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue