mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-12 10:11:30 -04:00
chat: Move click handlers to chat.js
This commit is contained in:
parent
7b7b085a1c
commit
f7d7d89874
2 changed files with 10 additions and 5 deletions
|
@ -218,6 +218,11 @@ exports.chat = (() => {
|
|||
},
|
||||
init(pad) {
|
||||
this._pad = pad;
|
||||
$('#options-stickychat').on('click', () => this.stickToScreen());
|
||||
$('#options-chatandusers').on('click', () => this.chatAndUsers());
|
||||
$('#chaticon').on('click', () => { this.show(); return false; });
|
||||
$('#titlecross').on('click', () => { this.hide(); return false; });
|
||||
$('#titlesticky').on('click', () => { this.stickToScreen(true); return false; });
|
||||
$('#chatinput').on('keydown', (evt) => {
|
||||
// If the event is Alt C or Escape & we're already in the chat menu
|
||||
// Send the users focus back to the pad
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue