Page MenuHomePhabricator

D7566.id17080.diff
No OneTemporary

D7566.id17080.diff

Index: webroot/rsrc/js/application/maniphest/behavior-batch-selector.js
===================================================================
--- webroot/rsrc/js/application/maniphest/behavior-batch-selector.js
+++ webroot/rsrc/js/application/maniphest/behavior-batch-selector.js
@@ -41,6 +41,18 @@
update();
};
+ var redraw = function (task) {
+ var selected = is_selected(task);
+ change(task, selected);
+ };
+ JX.Stratcom.listen(
+ 'subpriority-changed',
+ null,
+ function (e) {
+ e.kill();
+ var data = e.getData();
+ redraw(data.task);
+ });
// Change all tasks to some state (used by "select all" / "clear selection"
// buttons).
Index: webroot/rsrc/js/application/maniphest/behavior-subpriorityeditor.js
===================================================================
--- webroot/rsrc/js/application/maniphest/behavior-subpriorityeditor.js
+++ webroot/rsrc/js/application/maniphest/behavior-subpriorityeditor.js
@@ -57,8 +57,11 @@
var nodes = JX.$H(r.tasks).getFragment().firstChild;
var task = JX.DOM.find(nodes, 'li', 'maniphest-task');
JX.DOM.replace(node, task);
-
draggable.unlock();
+ JX.Stratcom.invoke(
+ 'subpriority-changed',
+ null,
+ { 'task' : task });
};
new JX.Workflow(config.uri, data)

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 16, 1:41 PM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6713796
Default Alt Text
D7566.id17080.diff (1 KB)

Event Timeline