Changeset 3549
- Timestamp:
- Jul 4, 2007, 2:59:34 PM (16 years ago)
- Location:
- trunk/www
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/views/trashcan/list_trash.jsp
r3190 r3549 201 201 /> 202 202 <tbl:button 203 image="<%=totalCount > 0 ? "delete .gif" : "delete_disabled.gif"%>"203 image="<%=totalCount > 0 ? "delete_permanently.png" : "delete_permanently_disabled.png"%>" 204 204 onclick="deleteItems()" 205 title="Delete …"206 tooltip="Delete the selected items "205 title="Delete permanently…" 206 tooltip="Delete the selected items permanently" 207 207 disabled="<%=totalCount <= 0%>" 208 208 /> -
trunk/www/views/trashcan/view_item.jsp
r3548 r3549 166 166 frm.submit(); 167 167 } 168 function showUsingItems(itemType, itemId) 169 { 170 var url = 'index.jsp?ID=<%=ID%>&cmd=ViewUsingItems&item_type='+itemType+'&item_id='+itemId; 171 location.href = url; 172 } 168 173 169 174 </script> … … 323 328 boolean usedByIsRemoved = false; 324 329 boolean usedByRemovable = false; 330 boolean usedByIsUsed = false; 325 331 BasicItem usedBy = null; 326 332 String usedByName = String.valueOf(proxy.getId()); … … 330 336 usedBy = proxy.getItem(dc); 331 337 writePermissionOnUsedBy = usedBy.hasPermission(Permission.WRITE); 338 usedByIsUsed = usedBy.isUsed(); 332 339 if (usedBy instanceof Removable) 333 340 { … … 385 392 tooltip="This item has been scheduled for deletion" 386 393 visible="<%=usedByIsRemoved%>" 394 /> 395 <base:icon 396 image="used.gif" 397 tooltip="This item is used by other items" 398 visible="<%=usedByIsRemoved && usedByIsUsed%>" 399 onclick="<%="showUsingItems('" + usedBy.getType().name() + "', " + usedBy.getId() + ")"%>" 387 400 /> </tbl:header> 388 401 <tbl:cell column="name"><%=Base.getLink(ID, HTML.encodeTags(usedByName), proxy.getType(), proxy.getId(), writePermissionOnUsedBy)%></tbl:cell>
Note: See TracChangeset
for help on using the changeset viewer.