1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00

Conpherence - fix a typo

Summary: this typo broke (at least) renaming the thread from the durable column.

Test Plan: renamed a thread from durable column and it worked

Reviewers: chad, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D12104
This commit is contained in:
Bob Trahan 2015-03-17 17:01:33 -07:00
parent 9bda03dbce
commit 441112c8e2
3 changed files with 34 additions and 43 deletions

View file

@ -352,8 +352,8 @@ return array(
'rsrc/js/application/aphlict/behavior-aphlict-status.js' => 'ea681761',
'rsrc/js/application/auth/behavior-persona-login.js' => '9414ff18',
'rsrc/js/application/config/behavior-reorder-fields.js' => '14a827de',
'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => '6a9169bb',
'rsrc/js/application/conpherence/behavior-durable-column.js' => 'e975bd12',
'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => '24561adb',
'rsrc/js/application/conpherence/behavior-durable-column.js' => 'eedc463c',
'rsrc/js/application/conpherence/behavior-menu.js' => 'c4151295',
'rsrc/js/application/conpherence/behavior-pontificate.js' => '21ba5861',
'rsrc/js/application/conpherence/behavior-quicksand-blacklist.js' => '7927a7d3',
@ -517,7 +517,7 @@ return array(
'conpherence-menu-css' => '9b37a261',
'conpherence-message-pane-css' => 'e78e9d3c',
'conpherence-notification-css' => '04a6e10a',
'conpherence-thread-manager' => '6a9169bb',
'conpherence-thread-manager' => '24561adb',
'conpherence-update-css' => '1099a660',
'conpherence-widget-pane-css' => '9efbfed0',
'differential-changeset-view-css' => '6a8b172a',
@ -583,7 +583,7 @@ return array(
'javelin-behavior-diffusion-locate-file' => '6d3e1947',
'javelin-behavior-diffusion-pull-lastmodified' => '2b228192',
'javelin-behavior-doorkeeper-tag' => 'e5822781',
'javelin-behavior-durable-column' => 'e975bd12',
'javelin-behavior-durable-column' => 'eedc463c',
'javelin-behavior-error-log' => '6882e80a',
'javelin-behavior-fancy-datepicker' => 'c51ae228',
'javelin-behavior-global-drag-and-drop' => 'bbdf75ca',
@ -988,6 +988,16 @@ return array(
'javelin-workflow',
'javelin-util',
),
'24561adb' => array(
'javelin-dom',
'javelin-util',
'javelin-stratcom',
'javelin-install',
'javelin-workflow',
'javelin-router',
'javelin-behavior-device',
'javelin-vector',
),
'2818f5ce' => array(
'javelin-install',
'javelin-util',
@ -1270,16 +1280,6 @@ return array(
'69adf288' => array(
'javelin-install',
),
'6a9169bb' => array(
'javelin-dom',
'javelin-util',
'javelin-stratcom',
'javelin-install',
'javelin-workflow',
'javelin-router',
'javelin-behavior-device',
'javelin-vector',
),
'6c2b09a2' => array(
'javelin-install',
'javelin-util',
@ -1893,7 +1893,13 @@ return array(
'javelin-dom',
'phabricator-draggable-list',
),
'e975bd12' => array(
'ea681761' => array(
'javelin-behavior',
'javelin-aphlict',
'phabricator-phtize',
'javelin-dom',
),
'eedc463c' => array(
'javelin-behavior',
'javelin-dom',
'javelin-stratcom',
@ -1903,12 +1909,6 @@ return array(
'phabricator-keyboard-shortcut',
'conpherence-thread-manager',
),
'ea681761' => array(
'javelin-behavior',
'javelin-aphlict',
'phabricator-phtize',
'javelin-dom',
),
'efe49472' => array(
'javelin-install',
'javelin-util',

View file

@ -175,15 +175,16 @@ JX.install('ConpherenceThreadManager', {
if (r.latest_transaction_id < this._updating.knownID) {
return false;
}
// we need to let the update code handle things here
if (r.latest_transaction_id > this._updating.knownID) {
this._updating.knownID = r.latest_transaction_id;
return false;
}
}
return true;
},
_markUpdated: function(r) {
this._updating.knownID = r.latest_transaction_id;
this._latestTransactionID = r.latest_transaction_id;
JX.Stratcom.invoke('notification-panel-update', null, {});
},
_updateThread: function() {
var params = this._getParams({
action: 'load',
@ -194,19 +195,11 @@ JX.install('ConpherenceThreadManager', {
var workflow = new JX.Workflow(uri)
.setData(params)
.setHandler(JX.bind(this, function(r) {
if (this._updating &&
this._updating.threadPHID == this._loadedThreadPHID) {
// we have a different, more current update in progress so
// return early
if (r.latest_transaction_id < this._updating.knownID) {
return;
}
}
this._updating.knownID = r.latest_transaction_id;
this._latestTransactionID = r.latest_transaction_id;
JX.Stratcom.invoke('notification-panel-update', null, {});
if (this._shouldUpdateDOM(r)) {
this._markUpdated(r);
this._didUpdateThreadCallback(r);
this._didUpdateThreadCallback(r);
}
}));
this.syncWorkflow(workflow, 'finally');
@ -235,8 +228,7 @@ JX.install('ConpherenceThreadManager', {
.setData(params)
.setHandler(JX.bind(this, function(r) {
if (this._shouldUpdateDOM(r)) {
this._latestTransactionID = r.latest_transaction_id;
JX.Stratcom.invoke('notification-panel-update', null, {});
this._markUpdated(r);
this._didUpdateWorkflowCallback(r);
}
@ -283,8 +275,7 @@ JX.install('ConpherenceThreadManager', {
var workflow = JX.Workflow.newFromForm(form, params, keep_enabled)
.setHandler(JX.bind(this, function(r) {
if (this._shouldUpdateDOM(r)) {
this._latestTransactionID = r.latest_transaction_id;
JX.Stratcom.invoke('notification-panel-update', null, {});
this._markUpdated(r);
this._didSendMessageCallback(r);
}

View file

@ -120,7 +120,7 @@ JX.behavior('durable-column', function(config, statics) {
JX.Stratcom.invoke('notification-panel-close');
});
threadManager.setDidUpdateWorkflowCallback(function(r) {
var messages = this._getMessagesNode();
var messages = _getColumnMessagesNode();
JX.DOM.appendContent(messages, JX.$H(r.transactions));
scrollbar.scrollTo(messages.scrollHeight);
JX.DOM.setContent(_getColumnTitleNode(), r.conpherence_title);