Restore "Reclaim" and "Abandon" actions to Differential on EditEngine

Summary: Ref T11114. This begins restoring comment actions to Differential, but on top of EditEngine.

Test Plan: {F2263148}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11114

Differential Revision: https://secure.phabricator.com/D17107
This commit is contained in:
epriestley
2016-12-28 10:21:54 -08:00
parent c05306d746
commit 3c5a17ba8a
11 changed files with 343 additions and 10 deletions

View File

@@ -47,6 +47,9 @@ JX.install('PHUIXFormControl', {
case 'optgroups':
input = this._newOptgroups(spec);
break;
case 'static':
input = this._newStatic(spec);
break;
default:
// TODO: Default or better error?
JX.$E('Bad Input Type');
@@ -172,6 +175,25 @@ JX.install('PHUIXFormControl', {
};
},
_newStatic: function(spec) {
var node = JX.$N(
'div',
{
className: 'phui-form-static-action'
},
spec.description || '');
return {
node: node,
get: function() {
return true;
},
set: function() {
return;
}
};
},
_newPoints: function(spec) {
var attrs = {
type: 'text',