Don't react on clicks and mouseovers of the 'no items' row.
authorJan Schneider <jan@horde.org>
Fri, 12 Feb 2010 10:34:46 +0000 (11:34 +0100)
committerJan Schneider <jan@horde.org>
Fri, 12 Feb 2010 10:34:46 +0000 (11:34 +0100)
kronolith/js/kronolith.js
kronolith/templates/index/tasks.inc
kronolith/themes/screen.css

index 0052864..77510fb 100644 (file)
@@ -2510,6 +2510,11 @@ KronolithCore = {
                 e.stop();
                 return;
 
+            case 'kronolithNewTask':
+                this.go('task');
+                e.stop();
+                return;
+
             case 'kronolithQuickEvent':
                 this.updateCalendarDropDown('kronolithQuickinsertCalendars');
                 $('kronolithQuickinsert').appear({
@@ -2808,8 +2813,6 @@ KronolithCore = {
             case 'kronolithTaskRow':
                 if (elt.retrieve('taskid')) {
                     this.go('task:' + elt.retrieve('tasklist') + ':' + elt.retrieve('taskid'));
-                } else {
-                    this.go('task');
                 }
                 e.stop();
                 return;
index b78e77c..53cdb37 100644 (file)
     </ul>
   </caption>
   <tbody id="kronolithViewTasksBody">
-     <tr class="kronolithTaskRow">
-       <td class="kronolithTaskCol kronolithAddTask button">
-         <div class="kronolithAddTaskIcon"></div><?php echo _("Add Task") ?>
-       </td>
+    <tr id="kronolithNewTask" class="kronolithTaskRow">
+      <td class="kronolithTaskCol kronolithAddTask button">
+        <div class="kronolithAddTaskIcon"></div><?php echo _("Add Task") ?>
+      </td>
     </tr>
     <tr id="kronolithTasksTemplate" class="kronolithTaskRow" style="display:none">
       <td class="kronolithTaskCol">
index 02321d0..503dbb8 100644 (file)
@@ -1072,6 +1072,9 @@ table.kronolithView td.kronolithFirstCol {
     padding: 4px 4px 4px 4px;
     cursor: pointer;
 }
+#kronolithViewTasksBody #kronolithTasksNoItems td {
+    cursor: default;
+}
 #kronolithViewTasksBody div.kronolithTaskCheckbox {
     background: url("graphics/checkbox_off.png") no-repeat;
     margin-right: 5px;