Merge pull request #117 from polyphenolic/master
Revert commit 7eec859 ("Do not remove stuff from lists")
This commit is contained in:
commit
76ef52ccf7
11
js/ctrls/main.js
Normal file → Executable file
11
js/ctrls/main.js
Normal file → Executable file
@ -95,6 +95,17 @@ function(
|
|||||||
d.followedFrom = null;
|
d.followedFrom = null;
|
||||||
}
|
}
|
||||||
rpc.once(method, [d.gid], cb);
|
rpc.once(method, [d.gid], cb);
|
||||||
|
|
||||||
|
var lists = [scope.active, scope.waiting, scope.stopped], ind = -1, i;
|
||||||
|
for (var i = 0; i < lists.length; ++i) {
|
||||||
|
var list = lists[i];
|
||||||
|
var idx = list.indexOf(d);
|
||||||
|
if (idx < 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
list.splice(idx, 1);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user