Differences From Artifact [edd2e93fe2]:
- File src/fossil.page.chat.js — part of check-in [4711a8c4dd] at 2024-07-02 12:04:47 on branch fts5-chat-search — Chat help text cleanups and add a FIXME regarding connection failure (as opposed to HTTP-level errors) while polling for new chat messages (which is not a new problem, but is one which came up while working on fts5-chat-search). (user: stephan size: 98248) [more...]
To Artifact [151f9f840f]:
- File src/fossil.page.chat.js — part of check-in [2a3a32edea] at 2024-07-09 15:20:26 on branch trunk — Use the long date format for all messages in the chat search dialog, not just those that match the current query. (user: dan size: 98287) [more...]
| ︙ | ︙ | |||
1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 |
n: nFetch,
i: iFirst
},
responseType: "json",
onload:function(jx){
if( bDown ) jx.msgs.reverse();
jx.msgs.forEach((m) => {
var mw = new Chat.MessageWidget(m);
if( bDown ){
/* Inject the message below this object's body, or
append it to Chat.e.searchContent if this element
is the final one in its parent (Chat.e.searchContent). */
const eAnchor = e.body.nextElementSibling;
if( eAnchor ) Chat.e.searchContent.insertBefore(mw.e.body, eAnchor);
| > | 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 |
n: nFetch,
i: iFirst
},
responseType: "json",
onload:function(jx){
if( bDown ) jx.msgs.reverse();
jx.msgs.forEach((m) => {
m.isSearchResult = true;
var mw = new Chat.MessageWidget(m);
if( bDown ){
/* Inject the message below this object's body, or
append it to Chat.e.searchContent if this element
is the final one in its parent (Chat.e.searchContent). */
const eAnchor = e.body.nextElementSibling;
if( eAnchor ) Chat.e.searchContent.insertBefore(mw.e.body, eAnchor);
|
| ︙ | ︙ |