Changeset 5050
- Timestamp:
- Aug 17, 2009, 1:18:08 PM (13 years ago)
- Location:
- trunk/www/biomaterials
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/biomaterials/bioplates/view_bioplate.jsp
r5044 r5050 49 49 import="net.sf.basedb.core.query.Hql" 50 50 import="net.sf.basedb.clients.web.Base" 51 import="net.sf.basedb.clients.web.ChangeHistoryUtil" 51 52 import="net.sf.basedb.clients.web.PermissionUtil" 52 53 import="net.sf.basedb.clients.web.util.HTML" … … 145 146 function switchTab(tabControlId, tabId) 146 147 { 147 if (tabId == 'wells') 148 if (tabId == 'history' && tabId != '<%=tab%>') 149 { 150 location.href = 'index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=itemId%>&tab='+tabId; 151 } 152 else if (tabId == 'wells') 148 153 { 149 154 viewWells(); … … 163 168 </p:path> 164 169 165 <t:tabcontrol id="main" active="<%=tab%>" switch="switchTab" >170 <t:tabcontrol id="main" active="<%=tab%>" switch="switchTab" remember="false"> 166 171 <t:tab id="properties" title="Properties"> 167 172 <tbl:toolbar … … 404 409 </t:tab> 405 410 <t:tab id="wells" title="Wells" /> 411 <t:tab id="history" title="Change history" 412 tooltip="Displays a log of all modifications made to this item" 413 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 414 <% 415 if ("history".equals(tab)) 416 { 417 %> 418 <jsp:include page="../../common/history/frameset.jsp"> 419 <jsp:param name="source_type" value="<%=itemType.name()%>" /> 420 <jsp:param name="source_id" value="<%=itemId%>" /> 421 <jsp:param name="ID" value="<%=ID%>" /> 422 </jsp:include> 423 <% 424 } 425 %> 426 </t:tab> 406 427 </t:tabcontrol> 407 428 </base:body> -
trunk/www/biomaterials/bioplates/wells/list_biowells.jsp
r4889 r5050 48 48 import="net.sf.basedb.util.Enumeration" 49 49 import="net.sf.basedb.clients.web.Base" 50 import="net.sf.basedb.clients.web.ChangeHistoryUtil" 50 51 import="net.sf.basedb.clients.web.ModeInfo" 51 52 import="net.sf.basedb.clients.web.PermissionUtil" … … 157 158 function switchTab(tabControlId, tabId) 158 159 { 159 if (tabId == 'properties' || tabId == 'annotations' )160 if (tabId == 'properties' || tabId == 'annotations' || tabId == 'history') 160 161 { 161 162 location.href = '../index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=bioplateId%>&tab='+tabId; … … 492 493 493 494 </t:tab> 495 <t:tab id="history" title="Change history" 496 tooltip="Displays a log of all modifications made to this item" 497 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" /> 494 498 </t:tabcontrol> 495 499 -
trunk/www/biomaterials/events/list_events.jsp
r4889 r5050 47 47 import="net.sf.basedb.util.units.UnitUtil" 48 48 import="net.sf.basedb.clients.web.Base" 49 import="net.sf.basedb.clients.web.ChangeHistoryUtil" 49 50 import="net.sf.basedb.clients.web.ModeInfo" 50 51 import="net.sf.basedb.clients.web.PermissionUtil" … … 202 203 function switchTab(tabControlId, tabId) 203 204 { 204 if (tabId == 'properties' || tabId == 'annotations' || tabId == 'overview' )205 if (tabId == 'properties' || tabId == 'annotations' || tabId == 'overview' || tabId == 'history') 205 206 { 206 207 location.href = '<%=viewPage%>?ID=<%=ID%>&cmd=ViewItem&item_id=<%=bioMaterialId%>&tab='+tabId; … … 575 576 <t:tab id="overview" title="Overview" 576 577 tooltip="Display a tree overview of related items" /> 578 <t:tab id="history" title="Change history" 579 tooltip="Displays a log of all modifications made to this item" 580 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" /> 577 581 </t:tabcontrol> 578 582 -
trunk/www/biomaterials/extracts/view_extract.jsp
r5044 r5050 55 55 import="net.sf.basedb.core.Type" 56 56 import="net.sf.basedb.clients.web.Base" 57 import="net.sf.basedb.clients.web.ChangeHistoryUtil" 57 58 import="net.sf.basedb.clients.web.PermissionUtil" 58 59 import="net.sf.basedb.clients.web.util.HTML" … … 162 163 { 163 164 if (TabControl.isActive(tabControlId, tabId)) return; 164 if ( tabId == 'overview'&& tabId != '<%=tab%>')165 if ((tabId == 'overview' || tabId == 'history') && tabId != '<%=tab%>') 165 166 { 166 167 location.href = 'index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=itemId%>&tab='+tabId; … … 713 714 %> 714 715 </t:tab> 715 716 <t:tab id="history" title="Change history" 717 tooltip="Displays a log of all modifications made to this item" 718 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 719 <% 720 if ("history".equals(tab)) 721 { 722 %> 723 <jsp:include page="../../common/history/frameset.jsp"> 724 <jsp:param name="source_type" value="<%=itemType.name()%>" /> 725 <jsp:param name="source_id" value="<%=itemId%>" /> 726 <jsp:param name="ID" value="<%=ID%>" /> 727 </jsp:include> 728 <% 729 } 730 %> 731 </t:tab> 716 732 </t:tabcontrol> 717 733 -
trunk/www/biomaterials/labeledextracts/view_labeledextract.jsp
r5044 r5050 54 54 import="net.sf.basedb.core.Project" 55 55 import="net.sf.basedb.clients.web.Base" 56 import="net.sf.basedb.clients.web.ChangeHistoryUtil" 56 57 import="net.sf.basedb.clients.web.PermissionUtil" 57 58 import="net.sf.basedb.clients.web.util.HTML" … … 161 162 { 162 163 if (TabControl.isActive(tabControlId, tabId)) return; 163 if ( tabId == 'overview'&& tabId != '<%=tab%>')164 if ((tabId == 'overview' || tabId == 'history') && tabId != '<%=tab%>') 164 165 { 165 166 location.href = 'index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=itemId%>&tab='+tabId; … … 714 715 %> 715 716 </t:tab> 717 <t:tab id="history" title="Change history" 718 tooltip="Displays a log of all modifications made to this item" 719 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 720 <% 721 if ("history".equals(tab)) 722 { 723 %> 724 <jsp:include page="../../common/history/frameset.jsp"> 725 <jsp:param name="source_type" value="<%=itemType.name()%>" /> 726 <jsp:param name="source_id" value="<%=itemId%>" /> 727 <jsp:param name="ID" value="<%=ID%>" /> 728 </jsp:include> 729 <% 730 } 731 %> 732 </t:tab> 716 733 </t:tabcontrol> 717 734 -
trunk/www/biomaterials/samples/view_sample.jsp
r5044 r5050 52 52 import="net.sf.basedb.core.Project" 53 53 import="net.sf.basedb.clients.web.Base" 54 import="net.sf.basedb.clients.web.ChangeHistoryUtil" 54 55 import="net.sf.basedb.clients.web.PermissionUtil" 55 56 import="net.sf.basedb.clients.web.util.HTML" … … 163 164 { 164 165 if (TabControl.isActive(tabControlId, tabId)) return; 165 if ( tabId == 'overview'&& tabId != '<%=tab%>')166 if ((tabId == 'overview' || tabId == 'history') && tabId != '<%=tab%>') 166 167 { 167 168 location.href = 'index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=itemId%>&tab='+tabId; … … 694 695 %> 695 696 </t:tab> 697 <t:tab id="history" title="Change history" 698 tooltip="Displays a log of all modifications made to this item" 699 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 700 <% 701 if ("history".equals(tab)) 702 { 703 %> 704 <jsp:include page="../../common/history/frameset.jsp"> 705 <jsp:param name="source_type" value="<%=itemType.name()%>" /> 706 <jsp:param name="source_id" value="<%=itemId%>" /> 707 <jsp:param name="ID" value="<%=ID%>" /> 708 </jsp:include> 709 <% 710 } 711 %> 712 </t:tab> 696 713 </t:tabcontrol> 697 714
Note: See TracChangeset
for help on using the changeset viewer.