Differences From Artifact [cb8f9a18c6]:
- File src/chat.js — part of check-in [10107e4fbc] at 2021-09-24 17:01:29 on branch chat-user-filter — Several minor cleanups, fixes, and presentation tweaks. (user: stephan size: 62889)
To Artifact [df7bc9ff86]:
- File src/chat.js — part of check-in [0fe5b6cb7e] at 2021-09-24 17:11:39 on branch chat-user-filter — Removed an accidental extraneous animation on every chat message sent. (user: stephan size: 62955) [more...]
| ︙ | |||
442 443 444 445 446 447 448 449 450 451 452 453 454 455 | 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 | + + + |
},
/**
Expects e to be one of the elements in this.e.views.
The 'hidden' class is removed from e and added to
all other elements in that list. Returns e.
*/
setCurrentView: function(e){
if(e===this.e.currentView){
return e;
}
this.e.views.forEach(function(E){
if(e!==E) D.addClass(E,'hidden');
});
this.e.currentView = D.removeClass(e,'hidden');
this.animate(this.e.currentView, 'anim-fade-in-fast');
return this.e.currentView;
},
|
| ︙ |