1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
|
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
|
-
+
-
+
-
|
label: "Chat-only mode",
hint: "Toggle the page between normal fossil view and chat-only view.",
boolValue: 'chat-only-mode'
},{
label: "Show images inline",
hint: "Whether to show images inline or as a hyperlink.",
boolValue: 'images-inline'
},{
},namedOptions.activeUsers,{
label: "Timestamps in active users list",
hint: "Whether to show last-message timestamps.",
boolValue: 'active-user-list-timestamps'
},
}];
namedOptions.activeUsers];
/** Set up selection list of notification sounds. */
if(1){
const selectSound = D.select();
D.option(selectSound, "", "(no audio)");
const firstSoundIndex = selectSound.options.length;
F.config.chat.alerts.forEach((a)=>D.option(selectSound, a));
|
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
|
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
|
-
|
]('compact');
});
Chat.settings.addListener('edit-ctrl-send',function(s){
const label = (s.value ? "Ctrl-" : "")+"Enter submits messages.";
const eInput = Chat.inputElement();
eInput.dataset.placeholder = eInput.dataset.placeholder0 + " " +label;
Chat.e.btnSubmit.title = label;
F.toast.message(label);
});
const valueKludges = {
/* Convert certain string-format values to other types... */
"false": false,
"true": true
};
Object.keys(Chat.settings.defaults).forEach(function(k){
|