Ignore:
Timestamp:
Nov 26, 2007, 2:22:16 PM (15 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #608: Delete 'removed' items directly from list views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/views/experiments/bioassaysets/analysis_tree.jsp

    r3679 r4003  
    344344      frm.cmd.value = 'RestoreItems';
    345345      frm.submit();
     346    }
     347    function deleteItemPermanently(itemType, itemId)
     348    {
     349      Main.deleteItemPermanently('<%=ID%>', true, itemType, itemId);
    346350    }
    347351    function configureColumns()
     
    735739                String tooltip = mode.isSelectionMode() ?
    736740                    "Select this item" : "View this item" + (writePermission ? " (use CTRL, ALT or SHIFT to edit)" : "");
     741                String deletePermanently = "deleteItemPermanently('" + item.getType().name() + "', "+itemId+")";
    737742                boolean removed = false;
    738743                Transformation t = null;
     
    833838                    visible="<%=mode.hasIcons()%>"
    834839                    ><base:icon
    835                       image="deleted.gif"
     840                      image="<%=deletePermission ? "deleted.gif" : "deleted_disabled.gif"%>"
     841                      onclick="<%=deletePermission ? deletePermanently : null%>"
    836842                      tooltip="This item has been scheduled for deletion"
    837843                      visible="<%=removed%>"
Note: See TracChangeset for help on using the changeset viewer.