summaryrefslogtreecommitdiff
path: root/src/task.cc
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2012-03-10 14:56:34 +0100
committerJonas Suhr Christensen <jsc@umbraculum.org>2012-03-10 14:56:34 +0100
commit39396a2660150770c3fd14aac8b4be0dcbae8497 (patch)
treeec1604a37725de1dfafade10bb4cb24d89e6322c /src/task.cc
parent0f00f525e5c4da9f5a96cd35c3cdad50f84b51d9 (diff)
Added new task hierarchy based protocol.
Drag and drop works somehow - maybe some weirdness in html5 drag and drop.
Diffstat (limited to 'src/task.cc')
-rw-r--r--src/task.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/task.cc b/src/task.cc
index 24e94a1..9940fc6 100644
--- a/src/task.cc
+++ b/src/task.cc
@@ -35,11 +35,12 @@ int current_id_count() {
}
task_t create_task(std::string title, std::string desc,
- int x, int y) {
+ /*int x, int y,*/ int parent_id) {
task_t t;
- t.x = x;
- t.y = y;
+ t.parent_id = parent_id;
+// t.x = x;
+// t.y = y;
t.title = title;
t.desc = desc;
t.id = id_count; id_count++;