mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
chat: Move click handler setup to init()
This commit is contained in:
parent
c8dbf35fe4
commit
195a6bd81b
1 changed files with 5 additions and 6 deletions
|
@ -203,12 +203,6 @@ exports.chat = (() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Clear the chat mentions when the user clicks on the chat input box
|
|
||||||
$('#chatinput').click(() => {
|
|
||||||
chatMentions = 0;
|
|
||||||
Tinycon.setBubble(0);
|
|
||||||
});
|
|
||||||
if (!isHistoryAdd) this.scrollDown();
|
if (!isHistoryAdd) this.scrollDown();
|
||||||
},
|
},
|
||||||
init(pad) {
|
init(pad) {
|
||||||
|
@ -224,6 +218,11 @@ exports.chat = (() => {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// Clear the chat mentions when the user clicks on the chat input box
|
||||||
|
$('#chatinput').click(() => {
|
||||||
|
chatMentions = 0;
|
||||||
|
Tinycon.setBubble(0);
|
||||||
|
});
|
||||||
|
|
||||||
const self = this;
|
const self = this;
|
||||||
$('body:not(#chatinput)').on('keypress', function (evt) {
|
$('body:not(#chatinput)').on('keypress', function (evt) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue