Only allow editing of description
authorJoey Schulze <joey@infodrom.org>
Sun, 6 May 2018 18:51:01 +0000 (20:51 +0200)
committerJoey Schulze <joey@infodrom.org>
Sun, 6 May 2018 18:51:01 +0000 (20:51 +0200)
src/InfoCon/stempel/status.wml

index 7212551..9247bb2 100644 (file)
@@ -61,7 +61,7 @@
                  '</form>';
 
     $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>';
+      '<td align="center" onclick="toggle_checkbox(%d,this)">%s</td><td><span class="edit" route="Stempel/EditTask" item_id="%d">%s</span></td></tr>';
     $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>';
 
@@ -331,7 +331,7 @@ function status_change(e)
 $(function(){
     $('div.jscode input.filter').keyup(filter_change);
     $('div.jscode img.filter').click(filter_clear);
-    make_editable('table.smallfont tr span');
+    make_editable('table.smallfont tr span.edit');
 });
 </protect>
 </script>