mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-12 10:11:30 -04:00
chat: Move chat-specific option processing to chat.js
This commit is contained in:
parent
1cbba4ea3a
commit
a1388b7876
2 changed files with 12 additions and 24 deletions
|
@ -70,16 +70,6 @@ const getParameters = [
|
|||
$('#editbar').css('display', 'flex');
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'showChat',
|
||||
checkVal: null,
|
||||
callback: (val) => {
|
||||
if (val === 'false') {
|
||||
settings.hideChat = true;
|
||||
chat.hide();
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'showLineNumbers',
|
||||
checkVal: 'false',
|
||||
|
@ -117,20 +107,6 @@ const getParameters = [
|
|||
settings.rtlIsTrue = true;
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'alwaysShowChat',
|
||||
checkVal: 'true',
|
||||
callback: (val) => {
|
||||
if (!settings.hideChat) chat.stickToScreen();
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'chatAndUsers',
|
||||
checkVal: 'true',
|
||||
callback: (val) => {
|
||||
chat.chatAndUsers();
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'lang',
|
||||
checkVal: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue