Ignore:
Timestamp:
Oct 13, 2008, 4:38:58 PM (14 years ago)
Author:
Martin Svensson
Message:

References #1136 Updated most of the index-, view- and list-jsp pages to implement the set-permission functionallity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/biomaterials/samples/view_sample.jsp

    r4559 r4578  
    135135      Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);
    136136    }
    137     function takeOwnership()
    138     {
    139       if (confirm('Are you sure that you want to take ownership of this item? It can\'t be undone.'))
    140       {
    141         location.replace('index.jsp?ID=<%=ID%>&cmd=TakeOwnershipOfItem&item_id=<%=itemId%>');
    142       }
     137    function setOwner()
     138    {
     139      Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 150);
    143140    }
    144141    function runPlugin(cmd)
     
    208205        disabled="<%=setOwnerPermission ? false : true%>"
    209206        image="<%=setOwnerPermission ? "take_ownership.png" : "take_ownership_disabled.png"%>"
    210         onclick="takeOwnership()"
    211         title="Take ownership&hellip;"
    212         visible="<%=!isOwner%>"
    213         tooltip="<%=setOwnerPermission ? "Take ownership of this item" : "You do not have permission to take ownership of this item"%>"
     207        onclick="setOwner()"
     208        title="Set owner&hellip;"
     209        tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>"
    214210      />
    215211      <tbl:button
Note: See TracChangeset for help on using the changeset viewer.