Fossil SCM

Reordered two config menu entries. Removed the enter/ctrl-enter toggle toast because that info is now in the edit widget's placeholder text and the toast can block access to config view entries for a few seconds.

stephan 2021-10-02 02:09 chat-input-rework
Commit b2d55ec9475ad0041a2d08fab97da4b79e9f4e8e68b934bf4617ac7700b93e2e
1 file changed +2 -4
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -1370,16 +1370,15 @@
13701370
boolValue: 'chat-only-mode'
13711371
},{
13721372
label: "Show images inline",
13731373
hint: "Whether to show images inline or as a hyperlink.",
13741374
boolValue: 'images-inline'
1375
- },{
1375
+ },namedOptions.activeUsers,{
13761376
label: "Timestamps in active users list",
13771377
hint: "Whether to show last-message timestamps.",
13781378
boolValue: 'active-user-list-timestamps'
1379
- },
1380
- namedOptions.activeUsers];
1379
+ }];
13811380
13821381
/** Set up selection list of notification sounds. */
13831382
if(1){
13841383
const selectSound = D.select();
13851384
D.option(selectSound, "", "(no audio)");
@@ -1506,11 +1505,10 @@
15061505
Chat.settings.addListener('edit-ctrl-send',function(s){
15071506
const label = (s.value ? "Ctrl-" : "")+"Enter submits messages.";
15081507
const eInput = Chat.inputElement();
15091508
eInput.dataset.placeholder = eInput.dataset.placeholder0 + " " +label;
15101509
Chat.e.btnSubmit.title = label;
1511
- F.toast.message(label);
15121510
});
15131511
const valueKludges = {
15141512
/* Convert certain string-format values to other types... */
15151513
"false": false,
15161514
"true": true
15171515
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -1370,16 +1370,15 @@
1370 boolValue: 'chat-only-mode'
1371 },{
1372 label: "Show images inline",
1373 hint: "Whether to show images inline or as a hyperlink.",
1374 boolValue: 'images-inline'
1375 },{
1376 label: "Timestamps in active users list",
1377 hint: "Whether to show last-message timestamps.",
1378 boolValue: 'active-user-list-timestamps'
1379 },
1380 namedOptions.activeUsers];
1381
1382 /** Set up selection list of notification sounds. */
1383 if(1){
1384 const selectSound = D.select();
1385 D.option(selectSound, "", "(no audio)");
@@ -1506,11 +1505,10 @@
1506 Chat.settings.addListener('edit-ctrl-send',function(s){
1507 const label = (s.value ? "Ctrl-" : "")+"Enter submits messages.";
1508 const eInput = Chat.inputElement();
1509 eInput.dataset.placeholder = eInput.dataset.placeholder0 + " " +label;
1510 Chat.e.btnSubmit.title = label;
1511 F.toast.message(label);
1512 });
1513 const valueKludges = {
1514 /* Convert certain string-format values to other types... */
1515 "false": false,
1516 "true": true
1517
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -1370,16 +1370,15 @@
1370 boolValue: 'chat-only-mode'
1371 },{
1372 label: "Show images inline",
1373 hint: "Whether to show images inline or as a hyperlink.",
1374 boolValue: 'images-inline'
1375 },namedOptions.activeUsers,{
1376 label: "Timestamps in active users list",
1377 hint: "Whether to show last-message timestamps.",
1378 boolValue: 'active-user-list-timestamps'
1379 }];
 
1380
1381 /** Set up selection list of notification sounds. */
1382 if(1){
1383 const selectSound = D.select();
1384 D.option(selectSound, "", "(no audio)");
@@ -1506,11 +1505,10 @@
1505 Chat.settings.addListener('edit-ctrl-send',function(s){
1506 const label = (s.value ? "Ctrl-" : "")+"Enter submits messages.";
1507 const eInput = Chat.inputElement();
1508 eInput.dataset.placeholder = eInput.dataset.placeholder0 + " " +label;
1509 Chat.e.btnSubmit.title = label;
 
1510 });
1511 const valueKludges = {
1512 /* Convert certain string-format values to other types... */
1513 "false": false,
1514 "true": true
1515

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button