Changeset 1073
- Timestamp:
- 12/13/09 14:15:39 (2 years ago)
- Location:
- trunk/www
- Files:
-
- 2 edited
-
format/table.php (modified) (1 diff)
-
views/listattach.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/format/table.php
r934 r1073 93 93 94 94 $key = getattr($column, 'key'); 95 $caption = html_escape(getattr($column, 'title', $key)); 95 if (isset($column['html_title'])) { 96 $caption = getattr($column, 'html_title', $key); 97 } else { 98 $caption = html_escape(getattr($column, 'title', $key)); 99 } 96 100 97 101 // sortable columns -
trunk/www/views/listattach.php
r1034 r1073 19 19 } 20 20 21 } 22 function attachments_toggle_selection(checked) { 23 var check_boxes = getElementsByTagAndClassName('input', 'attach-checkbox'); 24 25 for (var index in check_boxes) { 26 check_boxes[index].checked = checked; 27 } 21 28 } 22 29 </script> … … 52 59 $id = html_escape($row["id"]); 53 60 $name = html_escape($row["name"]); 54 $attachurl = "<input type='checkbox' name='$id' value='$name'>"; 55 61 $attachurl = "<input type='checkbox' name='$id' value='$name' class='attach-checkbox'>"; 56 62 return $attachurl; 57 63 } … … 79 85 $column_infos = array( 80 86 array ( 81 'title' => '', 87 'html_title' => '<input type="checkbox" ' . 88 'onclick="attachments_toggle_selection(this.checked)" />', 82 89 'key' => 'zip', 83 90 'rowform' => 'format_attach_zip'
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)