Changeset 4578 for trunk/www/biomaterials/samples/view_sample.jsp
- Timestamp:
- Oct 13, 2008, 4:38:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/biomaterials/samples/view_sample.jsp
r4559 r4578 135 135 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>); 136 136 } 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); 143 140 } 144 141 function runPlugin(cmd) … … 208 205 disabled="<%=setOwnerPermission ? false : true%>" 209 206 image="<%=setOwnerPermission ? "take_ownership.png" : "take_ownership_disabled.png"%>" 210 onclick="takeOwnership()" 211 title="Take ownership…" 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…" 209 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 214 210 /> 215 211 <tbl:button
Note: See TracChangeset
for help on using the changeset viewer.