Changeset 6262
- Timestamp:
- Mar 27, 2013, 2:48:59 PM (10 years ago)
- Location:
- trunk/www/admin
- Files:
-
- 4 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/admin/hardware/list_hardware.jsp
r6221 r6262 100 100 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 101 101 %> 102 <base:page title="<%=title==null ? "Hardware" : title%>" type="<%=mode.getPageType()%>" >103 <base:head scripts="table.js " styles="table.css,toolbar.css">102 <base:page title="<%=title==null ? "Hardware" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 103 <base:head scripts="table.js,~hardware.js" styles="table.css,toolbar.css"> 104 104 <ext:scripts context="<%=jspContext%>" /> 105 105 <ext:stylesheets context="<%=jspContext%>" /> 106 <script>107 var submitPage = 'index.jsp';108 var formId = 'hardware';109 function newItem()110 {111 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);112 }113 function editItem(itemId)114 {115 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);116 }117 function viewItem(itemId)118 {119 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);120 }121 function itemOnClick(evt, itemId)122 {123 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);124 }125 function deleteItems()126 {127 var frm = document.forms[formId];128 if (Forms.numChecked(frm) == 0)129 {130 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');131 return;132 }133 frm.action = submitPage;134 frm.cmd.value = 'DeleteItems';135 frm.submit();136 }137 function restoreItems()138 {139 var frm = document.forms[formId];140 if (Forms.numChecked(frm) == 0)141 {142 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');143 return;144 }145 frm.action = submitPage;146 frm.cmd.value = 'RestoreItems';147 frm.submit();148 }149 function setOwner()150 {151 Table.setOwnerOfItems(formId);152 }153 function shareItems()154 {155 Table.shareItems(formId);156 }157 function configureColumns()158 {159 Table.configureColumns(formId);160 }161 function runPlugin(cmd)162 {163 Table.submitToPopup(formId, cmd, 750, 500);164 }165 function returnSelected()166 {167 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);168 window.close();169 }170 </script>171 106 </base:head> 172 107 … … 284 219 > 285 220 <tbl:button 221 id="btnNewItem" 286 222 disabled="<%=!createPermission%>" 287 223 image="new.png" 288 onclick="newItem()"289 224 title="New…" 290 225 tooltip="<%=createPermission ? "Create new hardware" : "You do not have permission to create hardware"%>" 291 226 /> 292 227 <tbl:button 228 id="btnDeleteItems" 293 229 image="delete.png" 294 onclick="deleteItems()"295 230 title="Delete" 296 231 tooltip="Delete the selected items" 297 232 /> 298 233 <tbl:button 234 id="btnRestoreItems" 299 235 image="restore.png" 300 onclick="restoreItems()"301 236 title="Restore" 302 237 tooltip="Restore the selected (deleted) items" 303 238 /> 304 239 <tbl:button 240 id="btnShareItems" 305 241 image="share.png" 306 onclick="shareItems()"307 242 title="Share…" 308 243 tooltip="Share the selected items" 309 244 /> 310 245 <tbl:button 246 id="btnSetOwner" 311 247 image="take_ownership.png" 312 onclick="setOwner()"313 248 title="Set owner…" 314 249 tooltip="Change owner of the selected items" 315 250 /> 316 251 <tbl:button 252 id="btnColumns" 317 253 image="columns.png" 318 onclick="configureColumns()"319 254 title="Columns…" 320 255 tooltip="Show, hide and re-order columns" 321 256 /> 322 257 <tbl:button 258 id="btnImport" 259 data-plugin-type="IMPORT" 323 260 image="import.png" 324 onclick="runPlugin('ImportItems')"325 261 title="Import…" 326 262 tooltip="Import data" … … 328 264 /> 329 265 <tbl:button 266 id="btnExport" 267 data-plugin-type="EXPORT" 330 268 image="export.png" 331 onclick="runPlugin('ExportItems')"332 269 title="Export…" 333 270 tooltip="Export data" … … 335 272 /> 336 273 <tbl:button 274 id="btnRunPlugin" 275 data-plugin-type="OTHER" 337 276 image="runplugin.png" 338 onclick="runPlugin('RunListPlugin')"339 277 title="Run plugin…" 340 278 tooltip="Run a plugin" … … 454 392 visible="<%=item.isShared()%>" 455 393 /> </tbl:header> 456 <tbl:cell column="name"><div class="link" 457 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 394 <tbl:cell column="name"><div 395 class="link table-item" 396 data-item-id="<%=itemId%>" 397 data-no-edit="<%=writePermission ? 0 : 1 %>" 398 tabindex="0" 458 399 title="<%=tooltip%>"><%=name%></div></tbl:cell> 459 400 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 518 459 519 460 <base:buttongroup subclass="dialogbuttons"> 520 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />521 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />522 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />461 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 462 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 463 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 523 464 </base:buttongroup> 524 465 -
trunk/www/admin/hardware/view_hardware.jsp
r6136 r6262 71 71 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); 72 72 final int itemId = cc.getId(); 73 final String tab = Values.getStringOrNull(request.getParameter("tab")); 73 74 final float scale = Base.getScale(sc); 74 75 final DbControl dc = sc.newDbControl(); … … 92 93 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 93 94 %> 94 <base:page title="<%=title%>" >95 <base:head scripts="table,js,tabcontrol .js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">95 <base:page title="<%=title%>" id="view-page"> 96 <base:head scripts="table,js,tabcontrol-2.js,~hardware.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> 96 97 <ext:scripts context="<%=jspContext%>" /> 97 98 <ext:stylesheets context="<%=jspContext%>" /> 98 <script>99 function editItem()100 {101 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);102 }103 function shareItem()104 {105 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'ShareHardware', 600, 400);106 }107 function deleteItem()108 {109 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');110 }111 function restoreItem()112 {113 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');114 }115 function deleteItemPermanently()116 {117 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');118 }119 function itemDeleted()120 {121 Main.listItems('<%=ID%>', '<%=itemType.name()%>');122 }123 function showUsingItems()124 {125 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);126 }127 function setOwner()128 {129 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);130 }131 function runPlugin(cmd)132 {133 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);134 }135 </script>136 99 </base:head> 137 100 <base:body> … … 140 103 /><p:pathelement title="<%=HTML.encodeTags(hardware.getName())%>" 141 104 /></p:path> 105 <div id="page-data" data-item-id="<%=itemId%>"></div> 142 106 143 107 <t:tabcontrol 144 108 id="main" 145 109 subclass="content mastertabcontrol" 146 active=" properties">110 active="<%=tab%>"> 147 111 <t:tab id="properties" title="Properties"> 148 112 <div> … … 156 120 /> 157 121 <base:icon 122 id="btnDeletePermanently" 158 123 image="deleted.png" 159 onclick="deleteItemPermanently()"160 124 tooltip="This item has been flagged for deletion. Click to delete it now." 161 125 enabled="<%=deletePermanentlyPermission %>" 162 126 visible="<%=isRemoved%>" 163 127 /> 164 <base:icon image="used.png" 165 onclick="showUsingItems()" 128 <base:icon 129 id="btnUsingItems" 130 image="used.png" 166 131 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 167 132 visible="<%=isRemoved && isUsed%>" /> … … 170 135 <tbl:toolbar subclass="bottomborder"> 171 136 <tbl:button 137 id="btnEdit" 172 138 disabled="<%=!writePermission%>" 173 139 image="edit.png" 174 onclick="editItem()"175 140 title="Edit…" 176 141 tooltip="<%=writePermission ? "Edit this hardware" : "You do not have permission to edit this hardware"%>" 177 142 /> 178 143 <tbl:button 144 id="btnDelete" 179 145 disabled="<%=!deletePermission%>" 180 146 image="delete.png" 181 onclick="deleteItem()"182 147 title="Delete" 183 148 visible="<%=!hardware.isRemoved()%>" … … 185 150 /> 186 151 <tbl:button 152 id="btnRestore" 187 153 disabled="<%=!writePermission%>" 188 154 image="restore.png" 189 onclick="restoreItem()"190 155 title="Restore" 191 156 visible="<%=hardware.isRemoved()%>" … … 193 158 /> 194 159 <tbl:button 160 id="btnShare" 195 161 disabled="<%=!sharePermission%>" 196 162 image="share.png" 197 onclick="shareItem()"198 163 title="Share…" 199 164 tooltip="<%=sharePermission ? "Share this hardware to other user, groups and projects" : "You do not have permission to share this hardware"%>" 200 165 /> 201 166 <tbl:button 167 id="btnSetOwner" 202 168 disabled="<%=!setOwnerPermission%>" 203 169 image="take_ownership.png" 204 onclick="setOwner()"205 170 title="Set owner…" 206 171 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 207 172 /> 208 173 <tbl:button 174 id="btnImport" 209 175 image="import.png" 210 onclick="runPlugin('ImportItem')"176 data-plugin-type="IMPORT" 211 177 title="Import…" 212 178 tooltip="Import data" … … 214 180 /> 215 181 <tbl:button 216 image="export.png" 217 onclick="runPlugin('ExportItem')" 182 id="btnExport" 183 image="export.png" 184 data-plugin-type="EXPORT" 218 185 title="Export…" 219 186 tooltip="Export data" … … 221 188 /> 222 189 <tbl:button 223 image="runplugin.png" 224 onclick="runPlugin('RunPlugin')" 190 id="btnRunPlugin" 191 image="runplugin.png" 192 data-plugin-type="OTHER" 225 193 title="Run plugin…" 226 194 tooltip="Run a plugin" … … 231 199 <tbl:button 232 200 image="help.png" 233 onclick="<%="Main.openHelp('" + ID +"', 'hardware.view.properties')"%>" 201 subclass="auto-init" 202 data-auto-init="help" 203 data-help-id="hardware.view.properties" 234 204 title="Help…" 235 205 tooltip="Get help about this page" -
trunk/www/admin/news/view_news.jsp
r6222 r6262 63 63 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); 64 64 final int itemId = cc.getId(); 65 final String tab = Values.getStringOrNull(request.getParameter("tab")); 65 66 final float scale = Base.getScale(sc); 66 67 final DbControl dc = sc.newDbControl(); … … 97 98 id="main" 98 99 subclass="content mastertabcontrol" 99 active=" properties">100 active="<%=tab%>"> 100 101 <t:tab id="properties" title="Properties"> 101 102 <div> -
trunk/www/admin/protocols/list_protocol.jsp
r6221 r6262 107 107 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 108 108 %> 109 <base:page title="<%=title==null ? "Protocols" : title%>" type="<%=mode.getPageType()%>" >110 <base:head scripts="table.js " styles="table.css,toolbar.css">109 <base:page title="<%=title==null ? "Protocols" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 110 <base:head scripts="table.js,~protocols.js" styles="table.css,toolbar.css"> 111 111 <ext:scripts context="<%=jspContext%>" /> 112 112 <ext:stylesheets context="<%=jspContext%>" /> 113 <script>114 var submitPage = 'index.jsp';115 var formId = 'protocols';116 function newItem()117 {118 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);119 }120 function editItem(itemId)121 {122 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);123 }124 function viewItem(itemId)125 {126 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);127 }128 function itemOnClick(evt, itemId)129 {130 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);131 }132 function deleteItems()133 {134 var frm = document.forms[formId];135 if (Forms.numChecked(frm) == 0)136 {137 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');138 return;139 }140 frm.action = submitPage;141 frm.cmd.value = 'DeleteItems';142 frm.submit();143 }144 function restoreItems()145 {146 var frm = document.forms[formId];147 if (Forms.numChecked(frm) == 0)148 {149 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');150 return;151 }152 frm.action = submitPage;153 frm.cmd.value = 'RestoreItems';154 frm.submit();155 }156 function setOwner()157 {158 Table.setOwnerOfItems(formId);159 }160 function shareItems()161 {162 Table.shareItems(formId);163 }164 function configureColumns()165 {166 Table.configureColumns(formId);167 }168 function runPlugin(cmd)169 {170 Table.submitToPopup(formId, cmd, 750, 500);171 }172 function returnSelected()173 {174 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);175 window.close();176 }177 </script>178 113 </base:head> 179 114 … … 333 268 > 334 269 <tbl:button 270 id="btnNewItem" 335 271 disabled="<%=!createPermission%>" 336 272 image="new.png" 337 onclick="newItem()"338 273 title="New…" 339 274 tooltip="<%=createPermission ? "Create new protocol" : "You do not have permission to create protocols"%>" 340 275 /> 341 276 <tbl:button 277 id="btnDeleteItems" 342 278 image="delete.png" 343 onclick="deleteItems()"344 279 title="Delete" 345 280 tooltip="Delete the selected items" 346 281 /> 347 282 <tbl:button 283 id="btnRestoreItems" 348 284 image="restore.png" 349 onclick="restoreItems()"350 285 title="Restore" 351 286 tooltip="Restore the selected (deleted) items" 352 287 /> 353 288 <tbl:button 289 id="btnShareItems" 354 290 image="share.png" 355 onclick="shareItems()"356 291 title="Share…" 357 292 tooltip="Share the selected items" 358 293 /> 359 294 <tbl:button 295 id="btnSetOwner" 360 296 image="take_ownership.png" 361 onclick="setOwner()"362 297 title="Set owner…" 363 298 tooltip="Change owner of the selected items" 364 299 /> 365 300 <tbl:button 301 id="btnColumns" 366 302 image="columns.png" 367 onclick="configureColumns()"368 303 title="Columns…" 369 304 tooltip="Show, hide and re-order columns" 370 305 /> 371 306 <tbl:button 307 id="btnImport" 308 data-plugin-type="IMPORT" 372 309 image="import.png" 373 onclick="runPlugin('ImportItems')"374 310 title="Import…" 375 311 tooltip="Import data" … … 377 313 /> 378 314 <tbl:button 315 id="btnExport" 316 data-plugin-type="EXPORT" 379 317 image="export.png" 380 onclick="runPlugin('ExportItems')"381 318 title="Export…" 382 319 tooltip="Export data" … … 384 321 /> 385 322 <tbl:button 323 id="btnRunPlugin" 324 data-plugin-type="OTHER" 386 325 image="runplugin.png" 387 onclick="runPlugin('RunListPlugin')"388 326 title="Run plugin…" 389 327 tooltip="Run a plugin" … … 503 441 visible="<%=item.isShared()%>" 504 442 /> </tbl:header> 505 <tbl:cell column="name"><div class="link" 506 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 443 <tbl:cell column="name"><div 444 class="link table-item" 445 data-item-id="<%=itemId%>" 446 data-no-edit="<%=writePermission ? 0 : 1 %>" 447 tabindex="0" 507 448 title="<%=tooltip%>"><%=name%></div></tbl:cell> 508 449 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 554 495 } 555 496 %> 556 557 558 559 497 <tbl:cell column="permission"><%=PermissionUtil.getShortPermissions(item)%></tbl:cell> 560 498 <tbl:cell column="sharedTo"> … … 600 538 601 539 <base:buttongroup subclass="dialogbuttons"> 602 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />603 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />604 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />540 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 541 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 542 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 605 543 </base:buttongroup> 606 544 -
trunk/www/admin/protocols/view_protocol.jsp
r6255 r6262 78 78 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); 79 79 final int itemId = cc.getId(); 80 final String tab = Values.getString (request.getParameter("tab"), "properties");80 final String tab = Values.getStringOrNull(request.getParameter("tab")); 81 81 final float scale = Base.getScale(sc); 82 82 final DbControl dc = sc.newDbControl(); … … 100 100 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 101 101 %> 102 <base:page title="<%=title%>" >103 <base:head scripts="tabcontrol .js,table.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">102 <base:page title="<%=title%>" id="view-page"> 103 <base:head scripts="tabcontrol-2.js,table.js,~protocols.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css"> 104 104 <ext:scripts context="<%=jspContext%>" /> 105 105 <ext:stylesheets context="<%=jspContext%>" /> 106 <script>107 function editItem()108 {109 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);110 }111 function shareItem()112 {113 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'ShareProtocol', 600, 400);114 }115 function deleteItem()116 {117 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');118 }119 function restoreItem()120 {121 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');122 }123 function deleteItemPermanently()124 {125 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');126 }127 function itemDeleted()128 {129 Main.listItems('<%=ID%>', '<%=itemType.name()%>');130 }131 function showUsingItems()132 {133 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);134 }135 function setOwner()136 {137 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);138 }139 function runPlugin(cmd)140 {141 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);142 }143 </script>144 106 </base:head> 145 107 <base:body> … … 148 110 /><p:pathelement title="<%=HTML.encodeTags(protocol.getName())%>" 149 111 /></p:path> 112 <div id="page-data" data-item-id="<%=itemId%>"></div> 150 113 151 114 <t:tabcontrol … … 164 127 /> 165 128 <base:icon 129 id="btnDeletePermanently" 166 130 image="deleted.png" 167 onclick="deleteItemPermanently()"168 131 tooltip="This item has been flagged for deletion. Click to delete it now." 169 132 enabled="<%=deletePermanentlyPermission %>" 170 133 visible="<%=isRemoved%>" 171 134 /> 172 <base:icon image="used.png" 173 onclick="showUsingItems()" 135 <base:icon 136 id="btnUsingItems" 137 image="used.png" 174 138 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 175 139 visible="<%=isRemoved && isUsed%>" /> … … 178 142 <tbl:toolbar subclass="bottomborder"> 179 143 <tbl:button 144 id="btnEdit" 180 145 disabled="<%=!writePermission%>" 181 146 image="edit.png" 182 onclick="editItem()"183 147 title="Edit…" 184 148 tooltip="<%=writePermission ? "Edit this protocol" : "You do not have permission to edit this protocol"%>" 185 149 /> 186 150 <tbl:button 151 id="btnDelete" 187 152 disabled="<%=!deletePermission%>" 188 153 image="delete.png" 189 onclick="deleteItem()"190 154 title="Delete" 191 155 visible="<%=!protocol.isRemoved()%>" … … 193 157 /> 194 158 <tbl:button 159 id="btnRestore" 195 160 disabled="<%=!writePermission%>" 196 161 image="restore.png" 197 onclick="restoreItem()"198 162 title="Restore" 199 163 visible="<%=protocol.isRemoved()%>" … … 201 165 /> 202 166 <tbl:button 167 id="btnShare" 203 168 disabled="<%=!sharePermission%>" 204 169 image="share.png" 205 onclick="shareItem()"206 170 title="Share…" 207 171 tooltip="<%=sharePermission ? "Share this protocol to other user, groups and projects" : "You do not have permission to share this protocol"%>" 208 172 /> 209 173 <tbl:button 174 id="btnSetOwner" 210 175 disabled="<%=!setOwnerPermission%>" 211 176 image="take_ownership.png" 212 onclick="setOwner()"213 177 title="Set owner…" 214 178 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 215 179 /> 216 180 <tbl:button 181 id="btnImport" 217 182 image="import.png" 218 onclick="runPlugin('ImportItem')"183 data-plugin-type="IMPORT" 219 184 title="Import…" 220 185 tooltip="Import data" … … 222 187 /> 223 188 <tbl:button 224 image="export.png" 225 onclick="runPlugin('ExportItem')" 189 id="btnExport" 190 image="export.png" 191 data-plugin-type="EXPORT" 226 192 title="Export…" 227 193 tooltip="Export data" … … 229 195 /> 230 196 <tbl:button 231 image="runplugin.png" 232 onclick="runPlugin('RunPlugin')" 197 id="btnRunPlugin" 198 image="runplugin.png" 199 data-plugin-type="OTHER" 233 200 title="Run plugin…" 234 201 tooltip="Run a plugin" … … 239 206 <tbl:button 240 207 image="help.png" 241 onclick="<%="Main.openHelp('" + ID +"', 'protocol.view.properties')"%>" 208 subclass="auto-init" 209 data-auto-init="help" 210 data-help-id="protocol.view.properties" 242 211 title="Help…" 243 212 tooltip="Get help about this page" … … 369 338 </t:tab> 370 339 <t:tab id="annotations" title="Annotations" 371 tooltip="View annotation values" clazz="white" 372 activate="AnnotationsList.loadOnce()"> 340 tooltip="View annotation values" clazz="white"> 373 341 <jsp:include page="../../common/annotations/list_frameset.jsp"> 374 342 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 379 347 <t:tab id="history" title="Change history" 380 348 tooltip="Displays a log of all modifications made to this item" 381 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" 382 activate="History.loadOnce()"> 349 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 383 350 <jsp:include page="../../common/history/frameset.jsp"> 384 351 <jsp:param name="item_type" value="<%=itemType.name()%>" /> -
trunk/www/admin/quota/list_quota.jsp
r6221 r6262 97 97 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 98 98 %> 99 <base:page title="<%=title==null ? "Quota" : title%>" type="<%=mode.getPageType()%>" >100 <base:head scripts="table.js " styles="table.css,toolbar.css">99 <base:page title="<%=title==null ? "Quota" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 100 <base:head scripts="table.js,~quota.js" styles="table.css,toolbar.css"> 101 101 <ext:scripts context="<%=jspContext%>" /> 102 102 <ext:stylesheets context="<%=jspContext%>" /> 103 <script>104 var submitPage = 'index.jsp';105 var formId = 'quota';106 function newItem()107 {108 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);109 }110 function editItem(itemId)111 {112 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);113 }114 function viewItem(itemId)115 {116 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);117 }118 function itemOnClick(evt, itemId)119 {120 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);121 }122 function deleteItems()123 {124 var frm = document.forms[formId];125 if (Forms.numChecked(frm) == 0)126 {127 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');128 return;129 }130 frm.action = submitPage;131 frm.cmd.value = 'DeleteItems';132 frm.submit();133 }134 function restoreItems()135 {136 var frm = document.forms[formId];137 if (Forms.numChecked(frm) == 0)138 {139 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');140 return;141 }142 frm.action = submitPage;143 frm.cmd.value = 'RestoreItems';144 frm.submit();145 }146 function configureColumns()147 {148 Table.configureColumns(formId);149 }150 function runPlugin(cmd)151 {152 Table.submitToPopup(formId, cmd, 750, 500);153 }154 function returnSelected()155 {156 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);157 window.close();158 }159 </script>160 103 </base:head> 161 104 … … 236 179 > 237 180 <tbl:button 181 id="btnNewItem" 238 182 disabled="<%=!createPermission%>" 239 183 image="new.png" 240 onclick="newItem()"241 184 title="New…" 242 185 tooltip="<%=createPermission ? "Create new quota" : "You do not have permission to create quota"%>" 243 186 /> 244 187 <tbl:button 188 id="btnDeleteItems" 245 189 disabled="<%=!deletePermission%>" 246 190 image="delete.png" 247 onclick="deleteItems()"248 191 title="Delete" 249 192 tooltip="<%=deletePermission ? "Delete the selected items" : "You do not have permission to delete quota" %>" 250 193 /> 251 194 <tbl:button 195 id="btnRestoreItems" 252 196 disabled="<%=!writePermission%>" 253 197 image="restore.png" 254 onclick="restoreItems()"255 198 title="Restore" 256 199 tooltip="<%=writePermission ? "Restore the selected (deleted) items" : "You do not have permission to edit quota" %>" 257 200 /> 258 201 <tbl:button 202 id="btnColumns" 259 203 image="columns.png" 260 onclick="configureColumns()"261 204 title="Columns…" 262 205 tooltip="Show, hide and re-order columns" 263 206 /> 264 207 <tbl:button 208 id="btnImport" 209 data-plugin-type="IMPORT" 265 210 image="import.png" 266 onclick="runPlugin('ImportItems')"267 211 title="Import…" 268 212 tooltip="Import data" … … 270 214 /> 271 215 <tbl:button 216 id="btnExport" 217 data-plugin-type="EXPORT" 272 218 image="export.png" 273 onclick="runPlugin('ExportItems')"274 219 title="Export…" 275 220 tooltip="Export data" … … 277 222 /> 278 223 <tbl:button 224 id="btnRunPlugin" 225 data-plugin-type="OTHER" 279 226 image="runplugin.png" 280 onclick="runPlugin('RunListPlugin')"281 227 title="Run plugin…" 282 228 tooltip="Run a plugin" … … 390 336 visible="<%=item.isSystemItem()%>" 391 337 /> </tbl:header> 392 <tbl:cell column="name"><div class="link" onclick="itemOnClick(event, <%=itemId%>)" 338 <tbl:cell column="name"><div 339 class="link table-item" 340 data-item-id="<%=itemId%>" 341 data-no-edit="<%=writePermission ? 0 : 1 %>" 342 tabindex="0" 393 343 title="<%=tooltip%>"><%=name%></div></tbl:cell> 394 344 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 420 370 421 371 <base:buttongroup subclass="dialogbuttons"> 422 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />423 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />424 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />372 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 373 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 374 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 425 375 </base:buttongroup> 426 376 -
trunk/www/admin/quota/view_quota.jsp
r6147 r6262 83 83 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); 84 84 final int itemId = cc.getId(); 85 final String tab = Values.getStringOrNull(request.getParameter("tab")); 85 86 final float scale = Base.getScale(sc); 86 87 final DbControl dc = sc.newDbControl(); … … 113 114 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 114 115 %> 115 <base:page title="<%=title%>" >116 <base:head scripts="tabcontrol .js,table.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">116 <base:page title="<%=title%>" id="view-page"> 117 <base:head scripts="tabcontrol-2.js,table.js,~quota.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css"> 117 118 <ext:scripts context="<%=jspContext%>" /> 118 119 <ext:stylesheets context="<%=jspContext%>" /> 119 <script>120 function editItem()121 {122 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);123 }124 function deleteItem()125 {126 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');127 }128 function restoreItem()129 {130 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');131 }132 function deleteItemPermanently()133 {134 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');135 }136 function itemDeleted()137 {138 Main.listItems('<%=ID%>', '<%=itemType.name()%>');139 }140 function showUsingItems()141 {142 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);143 }144 function runPlugin(cmd)145 {146 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);147 }148 </script>149 120 <style> 150 121 table.special td, table.special th … … 164 135 /><p:pathelement title="<%=HTML.encodeTags(quota.getName())%>" 165 136 /></p:path> 137 <div id="page-data" data-item-id="<%=itemId%>"></div> 166 138 167 139 <t:tabcontrol 168 140 id="main" 169 141 subclass="content mastertabcontrol" 170 active=" properties">142 active="<%=tab %>"> 171 143 <t:tab id="properties" title="Properties"> 172 144 <div> … … 175 147 <th class="itemstatus"> 176 148 <base:icon 149 id="btnDeletePermanently" 177 150 image="deleted.png" 178 onclick="deleteItemPermanently()"179 151 tooltip="This item has been flagged for deletion. Click to delete it now." 180 152 enabled="<%=deletePermanentlyPermission %>" 181 153 visible="<%=isRemoved%>" 182 154 /> 183 <base:icon image="used.png" 184 onclick="showUsingItems()" 155 <base:icon 156 id="btnUsingItems" 157 image="used.png" 185 158 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 186 159 visible="<%=isRemoved && isUsed%>" /> … … 189 162 <tbl:toolbar subclass="bottomborder"> 190 163 <tbl:button 164 id="btnEdit" 191 165 disabled="<%=!writePermission%>" 192 166 image="edit.png" 193 onclick="editItem()"194 167 title="Edit…" 195 168 tooltip="<%=writePermission ? "Edit this quota" : "You do not have permission to edit this quota"%>" 196 169 /> 197 170 <tbl:button 171 id="btnDelete" 198 172 disabled="<%=!deletePermission%>" 199 173 image="delete.png" 200 onclick="deleteItem()"201 174 title="Delete" 202 175 visible="<%=!quota.isRemoved()%>" … … 204 177 /> 205 178 <tbl:button 179 id="btnRestore" 206 180 disabled="<%=!writePermission%>" 207 181 image="restore.png" 208 onclick="restoreItem()"209 182 title="Restore" 210 183 visible="<%=quota.isRemoved()%>" … … 212 185 /> 213 186 <tbl:button 187 id="btnImport" 214 188 image="import.png" 215 onclick="runPlugin('ImportItem')"189 data-plugin-type="IMPORT" 216 190 title="Import…" 217 191 tooltip="Import data" … … 219 193 /> 220 194 <tbl:button 221 image="export.png" 222 onclick="runPlugin('ExportItem')" 195 id="btnExport" 196 image="export.png" 197 data-plugin-type="EXPORT" 223 198 title="Export…" 224 199 tooltip="Export data" … … 226 201 /> 227 202 <tbl:button 228 image="runplugin.png" 229 onclick="runPlugin('RunPlugin')" 203 id="btnRunPlugin" 204 image="runplugin.png" 205 data-plugin-type="OTHER" 230 206 title="Run plugin…" 231 207 tooltip="Run a plugin" … … 236 212 <tbl:button 237 213 image="help.png" 238 onclick="<%="Main.openHelp('" + ID +"', 'quota.view.properties')"%>" 214 subclass="auto-init" 215 data-auto-init="help" 216 data-help-id="quota.view.properties" 239 217 title="Help…" 240 218 tooltip="Get help about this page" -
trunk/www/admin/reporterclonetemplates/list_templates.jsp
r6221 r6262 98 98 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 99 99 %> 100 <base:page title="<%=title==null ? "Reporter clone templates" : title%>" type="<%=mode.getPageType()%>" >101 <base:head scripts="table.js " styles="table.css,toolbar.css">100 <base:page title="<%=title==null ? "Reporter clone templates" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 101 <base:head scripts="table.js,~templates.js" styles="table.css,toolbar.css"> 102 102 <ext:scripts context="<%=jspContext%>" /> 103 103 <ext:stylesheets context="<%=jspContext%>" /> 104 <script>105 var submitPage = 'index.jsp';106 var formId = 'templates';107 function newItem()108 {109 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);110 }111 function editItem(itemId)112 {113 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);114 }115 function viewItem(itemId)116 {117 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);118 }119 function itemOnClick(evt, itemId)120 {121 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);122 }123 function deleteItems()124 {125 var frm = document.forms[formId];126 if (Forms.numChecked(frm) == 0)127 {128 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');129 return;130 }131 frm.action = submitPage;132 frm.cmd.value = 'DeleteItems';133 frm.submit();134 }135 function restoreItems()136 {137 var frm = document.forms[formId];138 if (Forms.numChecked(frm) == 0)139 {140 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');141 return;142 }143 frm.action = submitPage;144 frm.cmd.value = 'RestoreItems';145 frm.submit();146 }147 function setOwner()148 {149 Table.setOwnerOfItems(formId);150 }151 function shareItems()152 {153 Table.shareItems(formId);154 }155 function configureColumns()156 {157 Table.configureColumns(formId);158 }159 function runPlugin(cmd)160 {161 Table.submitToPopup(formId, cmd, 750, 500);162 }163 function returnSelected()164 {165 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);166 window.close();167 }168 </script>169 104 </base:head> 170 105 … … 276 211 > 277 212 <tbl:button 213 id="btnNewItem" 278 214 disabled="<%=!createPermission%>" 279 215 image="new.png" 280 onclick="newItem()"281 216 title="New…" 282 217 tooltip="<%=createPermission ? "Create new template" : "You do not have permission to create templates"%>" 283 218 /> 284 219 <tbl:button 220 id="btnDeleteItems" 285 221 image="delete.png" 286 onclick="deleteItems()"287 222 title="Delete" 288 223 tooltip="Delete the selected items" 289 224 /> 290 225 <tbl:button 226 id="btnRestoreItems" 291 227 image="restore.png" 292 onclick="restoreItems()"293 228 title="Restore" 294 229 tooltip="Restore the selected (deleted) items" 295 230 /> 296 231 <tbl:button 232 id="btnShareItems" 297 233 image="share.png" 298 onclick="shareItems()"299 234 title="Share…" 300 235 tooltip="Share the selected items" 301 236 /> 302 237 <tbl:button 238 id="btnSetOwner" 303 239 image="take_ownership.png" 304 onclick="setOwner()"305 240 title="Set owner…" 306 241 tooltip="Change owner of the selected items" 307 242 /> 308 243 <tbl:button 244 id="btnColumns" 309 245 image="columns.png" 310 onclick="configureColumns()"311 246 title="Columns…" 312 247 tooltip="Show, hide and re-order columns" 313 248 /> 314 249 <tbl:button 250 id="btnImport" 251 data-plugin-type="IMPORT" 315 252 image="import.png" 316 onclick="runPlugin('ImportItems')"317 253 title="Import…" 318 254 tooltip="Import data" … … 320 256 /> 321 257 <tbl:button 258 id="btnExport" 259 data-plugin-type="EXPORT" 322 260 image="export.png" 323 onclick="runPlugin('ExportItems')"324 261 title="Export…" 325 262 tooltip="Export data" … … 327 264 /> 328 265 <tbl:button 266 id="btnRunPlugin" 267 data-plugin-type="OTHER" 329 268 image="runplugin.png" 330 onclick="runPlugin('RunListPlugin')"331 269 title="Run plugin…" 332 270 tooltip="Run a plugin" … … 446 384 visible="<%=item.isShared()%>" 447 385 /> </tbl:header> 448 <tbl:cell column="name"><div class="link" 449 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 386 <tbl:cell column="name"><div 387 class="link table-item" 388 data-item-id="<%=itemId%>" 389 data-no-edit="<%=writePermission ? 0 : 1 %>" 390 tabindex="0" 450 391 title="<%=tooltip%>"><%=name%></div></tbl:cell> 451 392 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 513 454 514 455 <base:buttongroup subclass="dialogbuttons"> 515 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />516 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />517 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />456 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 457 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 458 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 518 459 </base:buttongroup> 519 460 -
trunk/www/admin/reporterclonetemplates/view_template.jsp
r6244 r6262 75 75 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); 76 76 final int itemId = cc.getId(); 77 final String tab = Values.getString (request.getParameter("tab"), "properties");77 final String tab = Values.getStringOrNull(request.getParameter("tab")); 78 78 final float scale = Base.getScale(sc); 79 79 final DbControl dc = sc.newDbControl(); … … 97 97 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 98 98 %> 99 <base:page title="<%=title%>" >100 <base:head scripts="tabcontrol .js,table.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">99 <base:page title="<%=title%>" id="view-page"> 100 <base:head scripts="tabcontrol-2.js,table.js,~templates.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css"> 101 101 <ext:scripts context="<%=jspContext%>" /> 102 102 <ext:stylesheets context="<%=jspContext%>" /> 103 <script>104 function editItem()105 {106 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);107 }108 function shareItem()109 {110 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'ShareReporterCloneTemplate', 600, 400);111 }112 function deleteItem()113 {114 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');115 }116 function restoreItem()117 {118 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');119 }120 function deleteItemPermanently()121 {122 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');123 }124 function itemDeleted()125 {126 Main.listItems('<%=ID%>', '<%=itemType.name()%>');127 }128 function showUsingItems()129 {130 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);131 }132 function setOwner()133 {134 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);135 }136 function runPlugin(cmd)137 {138 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);139 }140 </script>141 103 </base:head> 142 104 <base:body> … … 145 107 /><p:pathelement title="<%=HTML.encodeTags(template.getName())%>" 146 108 /></p:path> 109 <div id="page-data" data-item-id="<%=itemId%>"></div> 147 110 148 111 <t:tabcontrol … … 161 124 /> 162 125 <base:icon 126 id="btnDeletePermanently" 163 127 image="deleted.png" 164 onclick="deleteItemPermanently()"165 128 tooltip="This item has been flagged for deletion. Click to delete it now." 166 129 enabled="<%=deletePermanentlyPermission %>" 167 130 visible="<%=isRemoved%>" 168 131 /> 169 <base:icon image="used.png" 170 onclick="showUsingItems()" 132 <base:icon 133 id="btnUsingItems" 134 image="used.png" 171 135 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 172 136 visible="<%=isRemoved && isUsed%>" /> … … 175 139 <tbl:toolbar subclass="bottomborder"> 176 140 <tbl:button 141 id="btnEdit" 177 142 disabled="<%=!writePermission%>" 178 143 image="edit.png" 179 onclick="editItem()"180 144 title="Edit…" 181 145 tooltip="<%=writePermission ? "Edit this template" : "You do not have permission to edit this template"%>" 182 146 /> 183 147 <tbl:button 148 id="btnDelete" 184 149 disabled="<%=!deletePermission%>" 185 150 image="delete.png" 186 onclick="deleteItem()"187 151 title="Delete" 188 152 visible="<%=!template.isRemoved()%>" … … 190 154 /> 191 155 <tbl:button 156 id="btnRestore" 192 157 disabled="<%=!writePermission%>" 193 158 image="restore.png" 194 onclick="restoreItem()"195 159 title="Restore" 196 160 visible="<%=template.isRemoved()%>" … … 198 162 /> 199 163 <tbl:button 164 id="btnShare" 200 165 disabled="<%=!sharePermission%>" 201 166 image="share.png" 202 onclick="shareItem()"203 167 title="Share…" 204 168 tooltip="<%=sharePermission ? "Share this template to other user, groups and projects" : "You do not have permission to share this template"%>" 205 169 /> 206 170 <tbl:button 171 id="btnSetOwner" 207 172 disabled="<%=!setOwnerPermission%>" 208 173 image="take_ownership.png" 209 onclick="setOwner()"210 174 title="Set owner…" 211 175 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 212 176 /> 213 177 <tbl:button 178 id="btnImport" 214 179 image="import.png" 215 onclick="runPlugin('ImportItem')"180 data-plugin-type="IMPORT" 216 181 title="Import…" 217 182 tooltip="Import data" … … 219 184 /> 220 185 <tbl:button 221 image="export.png" 222 onclick="runPlugin('ExportItem')" 186 id="btnExport" 187 image="export.png" 188 data-plugin-type="EXPORT" 223 189 title="Export…" 224 190 tooltip="Export data" … … 226 192 /> 227 193 <tbl:button 228 image="runplugin.png" 229 onclick="runPlugin('RunPlugin')" 194 id="btnRunPlugin" 195 image="runplugin.png" 196 data-plugin-type="OTHER" 230 197 title="Run plugin…" 231 198 tooltip="Run a plugin" … … 236 203 <tbl:button 237 204 image="help.png" 238 onclick="<%="Main.openHelp('" + ID +"', 'reporterclonetemplate.view.properties')"%>" 205 subclass="auto-init" 206 data-auto-init="help" 207 data-help-id="reporterclonetemplate.view.properties" 239 208 title="Help…" 240 209 tooltip="Get help about this page" … … 360 329 <t:tab id="history" title="Change history" 361 330 tooltip="Displays a log of all modifications made to this item" 362 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" 363 activate="History.loadOnce()"> 331 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 364 332 <jsp:include page="../../common/history/frameset.jsp"> 365 333 <jsp:param name="item_type" value="<%=itemType.name()%>" /> -
trunk/www/admin/software/view_software.jsp
r6222 r6262 71 71 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); 72 72 final int itemId = cc.getId(); 73 final String tab = Values.getStringOrNull(request.getParameter("tab")); 73 74 final float scale = Base.getScale(sc); 74 75 final DbControl dc = sc.newDbControl(); … … 108 109 id="main" 109 110 subclass="content mastertabcontrol" 110 active=" properties">111 active="<%=tab%>"> 111 112 <t:tab id="properties" title="Properties"> 112 113 <div>
Note: See TracChangeset
for help on using the changeset viewer.