From 963c56c311a6680c4a49c10acf3dad1497569c8c Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 23 Nov 2009 11:22:06 +0100 Subject: [PATCH] Adding tasks (UI, not functional yet.). --- kronolith/js/kronolith.js | 4 ++-- kronolith/templates/index/edit.inc | 4 ++++ kronolith/templates/index/tasks.inc | 7 ++++++- kronolith/themes/graphics/new_task.png | Bin 0 -> 592 bytes kronolith/themes/screen.css | 13 +++++++++++++ 5 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 kronolith/themes/graphics/new_task.png diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 226b7e68a..6a3544470 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -1720,8 +1720,8 @@ KronolithCore = { _insertTaskPosition: function(newRow, newTask) { var rows = $('kronolithViewTasksBody').select('tr'); - // The first row is a template one, so must be ignored - for (var i = 1; i < rows.length; i++) { + // The first row is the add task row, the second a template, ignoring. + for (var i = 2; i < rows.length; i++) { var rowTasklist = rows[i].retrieve('tasklist'); var rowTaskId = rows[i].retrieve('taskid'); var rowTask = this.tcache.inject(null, function(acc, list) { diff --git a/kronolith/templates/index/edit.inc b/kronolith/templates/index/edit.inc index 2198d8365..8556e5be2 100644 --- a/kronolith/templates/index/edit.inc +++ b/kronolith/templates/index/edit.inc @@ -8,6 +8,7 @@ +

@@ -20,7 +21,9 @@ ·
+
+
@@ -39,6 +42,7 @@
+
+ + +
+ + -
+
diff --git a/kronolith/themes/graphics/new_task.png b/kronolith/themes/graphics/new_task.png new file mode 100644 index 0000000000000000000000000000000000000000..0d23667a7a2cfae02bba91450ec8474d68fbbfa9 GIT binary patch literal 592 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GXl47+C{+LR^8||NsAAxqM~+{sa5= z?Z1BG#^ozl&R@82?)>>Xckf)dc;Wno^M{Wdo;7Tjv-u3d?o&Q&gKCKY_ z|KVD&i;k?cM5wclwZ6j4juKmag;akt8+`>UUHM2i18Y5nj4;Pp9VN3nOD8uM#ssL`^I6Q0~uFukp0T5Ivd#)90G=!ae^x7=0ld23z{FuWIKeLBJY zaH{{khOCF{7vFc1yXUHOI>F=N`XyJdTzT{6&BKQeZ{50e@#4iZXU?2Hefrd?QzuTG zIDY*2(W6I?9656M@Zs&-w=Z0{aQ5uk)22;pYHDg|XsD~JD<~+Cm6es2mgeK*OQP^Zq~2sR z2G+V2&$gcb+hFL%@$y2C>tn_RlT|#emP|ex#9`B*QrGI