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:
epriestley
2017-05-15 13:08:55 -07:00
parent 798c8ba696
commit 3c18cb77fb
6 changed files with 80 additions and 58 deletions

View File

@@ -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;
}
},