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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user