Fossil SCM

Clean up some harmless stray tokens.

stephan 2024-07-01 18:40 fts5-chat-search
Commit 417bb1506482b4151c5f7f962c1dd9a874f7f94b693f27feebfcf81834deb596
1 file changed +1 -4
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -1356,14 +1356,11 @@
13561356
D.button(zUpArrow+' Load '+nMsgContext+' more '+zUpArrow),
13571357
'down'
13581358
),
13591359
all: D.addClass(D.button('Load More'), 'all')
13601360
};
1361
-
1362
- ;
13631361
D.append( this.e.body, this.e.up, this.e.down, this.e.all );
1364
-
13651362
const ms = this;
13661363
this.e.up.addEventListener('click', ()=>ms.load_messages(false));
13671364
this.e.down.addEventListener('click', ()=>ms.load_messages(true));
13681365
this.e.all.addEventListener('click', ()=>ms.load_messages( (ms.o.iPrevId==0) ));
13691366
this.set_button_visibility();
@@ -2374,11 +2371,11 @@
23742371
exactly true when the search view is active).
23752372
23762373
Returns the DOM element which wraps all of the chat search
23772374
result elements.
23782375
*/
2379
- Chat.clearSearch = function f(addInstructions=false){
2376
+ Chat.clearSearch = function(addInstructions=false){
23802377
const e = D.clearElement( this.e.searchContent );
23812378
if(addInstructions){
23822379
D.append(e, "Enter search terms in the message field.");
23832380
}
23842381
return e;
23852382
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -1356,14 +1356,11 @@
1356 D.button(zUpArrow+' Load '+nMsgContext+' more '+zUpArrow),
1357 'down'
1358 ),
1359 all: D.addClass(D.button('Load More'), 'all')
1360 };
1361
1362 ;
1363 D.append( this.e.body, this.e.up, this.e.down, this.e.all );
1364
1365 const ms = this;
1366 this.e.up.addEventListener('click', ()=>ms.load_messages(false));
1367 this.e.down.addEventListener('click', ()=>ms.load_messages(true));
1368 this.e.all.addEventListener('click', ()=>ms.load_messages( (ms.o.iPrevId==0) ));
1369 this.set_button_visibility();
@@ -2374,11 +2371,11 @@
2374 exactly true when the search view is active).
2375
2376 Returns the DOM element which wraps all of the chat search
2377 result elements.
2378 */
2379 Chat.clearSearch = function f(addInstructions=false){
2380 const e = D.clearElement( this.e.searchContent );
2381 if(addInstructions){
2382 D.append(e, "Enter search terms in the message field.");
2383 }
2384 return e;
2385
--- src/fossil.page.chat.js
+++ src/fossil.page.chat.js
@@ -1356,14 +1356,11 @@
1356 D.button(zUpArrow+' Load '+nMsgContext+' more '+zUpArrow),
1357 'down'
1358 ),
1359 all: D.addClass(D.button('Load More'), 'all')
1360 };
 
 
1361 D.append( this.e.body, this.e.up, this.e.down, this.e.all );
 
1362 const ms = this;
1363 this.e.up.addEventListener('click', ()=>ms.load_messages(false));
1364 this.e.down.addEventListener('click', ()=>ms.load_messages(true));
1365 this.e.all.addEventListener('click', ()=>ms.load_messages( (ms.o.iPrevId==0) ));
1366 this.set_button_visibility();
@@ -2374,11 +2371,11 @@
2371 exactly true when the search view is active).
2372
2373 Returns the DOM element which wraps all of the chat search
2374 result elements.
2375 */
2376 Chat.clearSearch = function(addInstructions=false){
2377 const e = D.clearElement( this.e.searchContent );
2378 if(addInstructions){
2379 D.append(e, "Enter search terms in the message field.");
2380 }
2381 return e;
2382

Keyboard Shortcuts

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