Move inline "done" checkboxing to DiffInline
Summary: Ref T12616. This updates clicking the "Done" checkbox for the new stuff. This one is pretty clean since the "Done" checkbox doesn't do too much weird magic. Test Plan: Clicked the box a few times. Reviewers: chad Reviewed By: chad Maniphest Tasks: T12616 Differential Revision: https://secure.phabricator.com/D17888
This commit is contained in:
@@ -29,6 +29,12 @@ JX.install('DiffChangesetList', {
|
||||
'click',
|
||||
['differential-inline-comment', 'differential-inline-edit'],
|
||||
onedit);
|
||||
|
||||
var ondone = JX.bind(this, this._ifawake, this._onaction, 'done');
|
||||
JX.Stratcom.listen(
|
||||
'click',
|
||||
['differential-inline-comment', 'differential-inline-done'],
|
||||
ondone);
|
||||
},
|
||||
|
||||
properties: {
|
||||
@@ -352,6 +358,9 @@ JX.install('DiffChangesetList', {
|
||||
case 'edit':
|
||||
inline.edit();
|
||||
break;
|
||||
case 'done':
|
||||
inline.toggleDone();
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user