@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Made progress on pagination

Summary: Pagination occurs once

Test Plan: Tested on conpherences I made with myself. Lot of bugs still remain, but shows older messages in gaps of 2.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin, chad

Maniphest Tasks: T2428

Differential Revision: https://secure.phabricator.com/D5183

Conflicts:

src/applications/conpherence/controller/ConpherenceViewController.php
webroot/rsrc/js/application/conpherence/behavior-menu.js

authored by

deedydas and committed by
epriestley
c29dbf81 3b7203dc

+10 -7
+1 -1
src/__celerity_resource_map__.php
··· 1190 1190 ), 1191 1191 'javelin-behavior-conpherence-menu' => 1192 1192 array( 1193 - 'uri' => '/res/e04bb055/rsrc/js/application/conpherence/behavior-menu.js', 1193 + 'uri' => '/res/ec121ad7/rsrc/js/application/conpherence/behavior-menu.js', 1194 1194 'type' => 'js', 1195 1195 'requires' => 1196 1196 array(
+9 -6
webroot/rsrc/js/application/conpherence/behavior-menu.js
··· 132 132 133 133 JX.Stratcom.listen('click', 'show-older-messages', function(e) { 134 134 e.kill(); 135 - console.log(document.URL); 136 - new JX.Request('/conpherence/view/1/', function(r) { 137 - console.log('100'); 138 - }) 139 - .setData({offset: 100}) // get the next page 140 - .send(); 135 + var last_offset = e.getNodeData('show-older-messages').offset; 136 + var conf_id = e.getNodeData('show-older-messages').ID; 137 + JX.DOM.remove(e.getNode('show-older-messages')); 138 + var messages_root = JX.$(config.messages); 139 + new JX.Request('/conpherence/view/'+conf_id+'/', function(r) { 140 + var messages = JX.$H(r.messages); 141 + JX.DOM.prependContent(messages_root, 142 + JX.$H(messages)); 143 + }).setData({ offset: last_offset+1 }).send(); 141 144 }); 142 145 143 146 // select the current message