From: Jan Schneider Date: Mon, 23 Nov 2009 10:22:06 +0000 (+0100) Subject: Adding tasks (UI, not functional yet.). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=963c56c311a6680c4a49c10acf3dad1497569c8c;p=horde.git Adding tasks (UI, not functional yet.). --- 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 000000000..0d23667a7 Binary files /dev/null and b/kronolith/themes/graphics/new_task.png differ diff --git a/kronolith/themes/screen.css b/kronolith/themes/screen.css index 070a2879f..421454ce4 100644 --- a/kronolith/themes/screen.css +++ b/kronolith/themes/screen.css @@ -391,6 +391,7 @@ body.kronolithAjax { } #kronolithNotifications { padding: 3px 5px; + color: #fff; } /* Main area */ @@ -687,6 +688,7 @@ div#kronolithEventTabTags { } #kronolithEventDialog .tabset ul, #kronolithTaskDialog .tabset ul { padding-left: 0; + margin: 0; } .kronolithTabsOption { @@ -1041,6 +1043,17 @@ table.kronolithView td.kronolithFirstCol { #kronolithViewTasks .kronolithInfo { color: #ccc; } +#kronolithViewTasks .kronolithAddTask { + font-weight: bold; +} +.kronolithAddTask .kronolithAddTaskIcon { + float: left; + margin-right: 7px; + margin-left: 2px; + width: 16px; + height: 16px; + background-image: url('graphics/new_task.png'); +} /* More main view */ .kronolithFirstCol {