mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 15:22:41 +01:00
243b99f39e
Summary: serving up for some feedback -- does anything fancy need to happen when new messages load (say highlight em and fade the highlight out) or just scrolling down okay? in JS I have a TODO about how come it doesn't work; that code works okay in my console if I print out various debugging values and enter them in manually. Test Plan: pontificate with myself; note new message and message entry updates properly. pontificate as different user then as myself; note two messages load and message entry updates properly. pontificate as a user who isn't the last to reply; note new message and message entry updates properly Reviewers: epriestley, chad Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2522 Differential Revision: https://secure.phabricator.com/D5214
20 lines
521 B
JavaScript
20 lines
521 B
JavaScript
/**
|
|
* @provides javelin-behavior-conpherence-init
|
|
* @requires javelin-behavior
|
|
* javelin-dom
|
|
* javelin-stratcom
|
|
*/
|
|
JX.behavior('conpherence-init', function(config) {
|
|
// select the current message
|
|
var selectedConpherence = false;
|
|
if (config.selected_conpherence_id) {
|
|
var selected = JX.$(config.selected_conpherence_id + '-nav-item');
|
|
JX.Stratcom.invoke(
|
|
'conpherence-initial-selected',
|
|
null,
|
|
{ selected : selected }
|
|
);
|
|
selectedConpherence = true;
|
|
}
|
|
|
|
});
|