Changeset 5070
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/data/AnnotationTypeData.java
r4889 r5070 41 41 public class AnnotationTypeData 42 42 extends CommonData 43 implements RegisteredData 43 implements RegisteredData, LoggableData 44 44 { 45 45 -
trunk/www/admin/annotationtypes/view_annotationtype.jsp
r5042 r5070 48 48 import="net.sf.basedb.core.query.Hql" 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.PermissionUtil" 51 52 import="net.sf.basedb.clients.web.util.HTML" … … 77 78 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); 78 79 final int itemId = cc.getId(); 80 final String tab = Values.getString(request.getParameter("tab"), "properties"); 79 81 final float scale = Base.getScale(sc); 80 82 final DbControl dc = sc.newDbControl(); … … 139 141 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 740, 540); 140 142 } 143 function switchTab(tabControlId, tabId) 144 { 145 if (TabControl.isActive(tabControlId, tabId)) return; 146 if (tabId == 'history' && tabId != '<%=tab%>') 147 { 148 location.href = 'index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=itemId%>&tab='+tabId; 149 } 150 else 151 { 152 TabControl.setActiveTab(tabControlId, tabId); 153 } 154 } 141 155 </script> 142 156 </base:head> … … 148 162 </p:path> 149 163 150 <t:tabcontrol id="main" active=" properties">164 <t:tabcontrol id="main" active="<%=tab%>" switch="switchTab" remember="false"> 151 165 <t:tab id="properties" title="Properties"> 152 166 … … 472 486 </div> 473 487 </t:tab> 488 <t:tab id="history" title="Change history" 489 tooltip="Displays a log of all modifications made to this item" 490 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 491 <% 492 if ("history".equals(tab)) 493 { 494 %> 495 <jsp:include page="../../common/history/frameset.jsp"> 496 <jsp:param name="source_type" value="<%=itemType.name()%>" /> 497 <jsp:param name="source_id" value="<%=itemId%>" /> 498 <jsp:param name="ID" value="<%=ID%>" /> 499 </jsp:include> 500 <% 501 } 502 %> 503 </t:tab> 474 504 </t:tabcontrol> 475 505
Note: See TracChangeset
for help on using the changeset viewer.