Stop editing when clicking on sum row
authorJoey Schulze <joey@infodrom.org>
Thu, 7 Dec 2017 19:03:35 +0000 (20:03 +0100)
committerJoey Schulze <joey@infodrom.org>
Thu, 7 Dec 2017 19:03:35 +0000 (20:03 +0100)
src/InfoCon/stempel/status.wml

index 5ee8b4d..7212551 100644 (file)
@@ -62,7 +62,8 @@
 
     $table_row = '<tr class="t%d" status="%d"><td>%s</td><td align="center" onclick="toggle_checkbox(%d,this)">%s</td>' .
       '<td align="center" onclick="toggle_checkbox(%d,this)">%s</td><td><span route="Stempel/EditTask" item_id="%d">%s</span></td></tr>';
-    $table_sum = '</tbody><tfoot><tr class="t%d"><td>&nbsp;</td><td align="center">%s</td><td>&nbsp;</td><td>Summe</td></tr></tfoot>';
+    $table_sum = '</tbody><tfoot><tr class="t%d" onclick="edit_task_finish(this)">' .
+       '<td>&nbsp;</td><td align="center">%s</td><td>&nbsp;</td><td>Summe</td></tr></tfoot>';
 
     $query = "SELECT stempel.oid,stempel.id,stempel.status,start,customer,time,task,kurz FROM stempel JOIN stempel_status ON (stempel.status = stempel_status.id) WHERE time IS NOT NULL ";
     if (isset($month) && strlen($month))