Changeset 6311
- Timestamp:
- Aug 23, 2013, 2:52:14 PM (9 years ago)
- Location:
- trunk/www
- Files:
-
- 12 added
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/admin/groups/view_group.jsp
r6224 r6311 121 121 id="btnUsingItems" 122 122 image="used.png" 123 onclick="showUsingItems()"124 123 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 125 124 visible="<%=isRemoved && isUsed%>" /> -
trunk/www/admin/platforms/variants/list_variants.jsp
r6289 r6311 436 436 </tbl:table> 437 437 <base:buttongroup subclass="dialogbuttons"> 438 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />439 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />440 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />438 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 439 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 440 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 441 441 </base:buttongroup> 442 442 </t:tab> -
trunk/www/admin/pluginconfigurations/view_configuration.jsp
r6289 r6311 159 159 id="btnUsingItems" 160 160 image="used.png" 161 onclick="showUsingItems()"162 161 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 163 162 visible="<%=isRemoved && isUsed%>" /> -
trunk/www/admin/quantities/list_quantities.jsp
r6289 r6311 444 444 } 445 445 %> 446 <base:icon447 image="add.png"448 onclick="<%="newUnit("+itemId+")"%>"449 tooltip="Create new unit"450 visible="<%=mode.hasEditLink() && createUnitPermission && usePermission %>"451 />452 446 </tbl:cell> 453 447 <tbl:cell column="description"><%=HTML.encodeTags(item.getDescription())%></tbl:cell> -
trunk/www/biomaterials/events/list_events.jsp
r6268 r6311 524 524 { 525 525 %> 526 <span class="link" 527 onclick="Main.itemOnClick(event, '<%=ID%>', 'BIOPLATEEVENT', <%=event.getId()%>, <%=editLink%>, '<%=extraUrl%>')" 526 <span class="link auto-init" 527 data-auto-init="item-link" 528 data-item-type="BIOPLATEEVENT" 529 data-item-id="<%=event.getId()%>" 530 data-no-edit="<%=editLink ? 0 : 1 %>" 531 data-extra-url="<%=extraUrl %>" 528 532 title="View this bioplate event <%=editLink? "(use CTRL, ALT or SHIFT to edit)" : ""%>" 529 533 > … … 592 596 </tbl:table> 593 597 <base:buttongroup subclass="dialogbuttons"> 594 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />595 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />596 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />598 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 599 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 600 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 597 601 </base:buttongroup> 598 602 </t:tab> -
trunk/www/lims/arraydesigns/features/list_features.jsp
r6307 r6311 477 477 id="btnColumns" 478 478 image="columns.png" 479 onclick="configureColumns()"480 479 title="Columns…" 481 480 tooltip="Show, hide and re-order columns" … … 753 752 754 753 <base:buttongroup> 755 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />756 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />757 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />754 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 755 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 756 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 758 757 </base:buttongroup> 759 758 -
trunk/www/my_base/projects/items/list_items.jsp
r6307 r6311 287 287 %> 288 288 <tbl:panel clazz="messagepanel"> 289 <div class="messagecontainer error" onclick="setToActive()"style="cursor: pointer;"289 <div class="messagecontainer error" style="cursor: pointer;" 290 290 title="Click to make this project the active project"> 291 291 This project is not the active project. The list can't display items -
trunk/www/my_base/projects/list_projects.jsp
r6307 r6311 227 227 id="btnColumns" 228 228 image="columns.png" 229 onclick="configureColumns()"230 229 title="Columns…" 231 230 tooltip="Show, hide and re-order columns" -
trunk/www/views/derivedbioassays/list_bioassays.jsp
r6221 r6311 140 140 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 141 141 %> 142 <base:page title="<%=title==null ? "Derived bioassays" : title%>" type="<%=mode.getPageType()%>" >143 <base:head scripts="table.js " styles="table.css,toolbar.css">142 <base:page title="<%=title==null ? "Derived bioassays" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 143 <base:head scripts="table.js,~bioassays.js" styles="table.css,toolbar.css"> 144 144 <ext:scripts context="<%=jspContext%>" /> 145 145 <ext:stylesheets context="<%=jspContext%>" /> 146 <script>147 var submitPage = 'index.jsp';148 var formId = 'bioassays';149 function newItem()150 {151 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);152 }153 function editItem(itemId)154 {155 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);156 }157 function viewItem(itemId)158 {159 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);160 }161 function itemOnClick(evt, itemId)162 {163 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);164 }165 function deleteItems()166 {167 var frm = document.forms[formId];168 if (Forms.numChecked(frm) == 0)169 {170 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');171 return;172 }173 frm.action = submitPage;174 frm.cmd.value = 'DeleteItems';175 frm.submit();176 }177 function restoreItems()178 {179 var frm = document.forms[formId];180 if (Forms.numChecked(frm) == 0)181 {182 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');183 return;184 }185 frm.action = submitPage;186 frm.cmd.value = 'RestoreItems';187 frm.submit();188 }189 function setOwner()190 {191 Table.setOwnerOfItems(formId);192 }193 function shareItems()194 {195 Table.shareItems(formId);196 }197 function configureColumns()198 {199 Table.configureColumns(formId);200 }201 function runPlugin(cmd)202 {203 Table.submitToPopup(formId, cmd, 750, 500);204 }205 function returnSelected()206 {207 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);208 window.close();209 }210 function newChildBioAssay(parentId)211 {212 Main.viewOrEditItem('<%=ID%>', 'DERIVEDBIOASSAY', 0, true, '&parent_id='+parentId);213 }214 function newRawBioAssay(parentId)215 {216 Main.viewOrEditItem('<%=ID%>', 'RAWBIOASSAY', 0, true, '&bioassay_id='+parentId);217 }218 function newMergedChild()219 {220 var frm = document.forms[formId];221 Table.poolItems(submitPage, '<%=ID%>', formId, '<%=itemType.name()%>', 'NewMergedDerivedBioAssay');222 }223 </script>224 146 </base:head> 225 147 … … 438 360 > 439 361 <tbl:button 362 id="btnNewItem" 440 363 disabled="<%=!createPermission%>" 441 364 image="new.png" 442 onclick="newItem()"443 365 title="New…" 444 366 tooltip="<%=createPermission ? "Create new derived bioassay" : "You do not have permission to create derived bioassays"%>" 445 367 /> 446 368 <tbl:button 369 id="btnNewMergedDerivedBioAssay" 447 370 disabled="<%=!createPermission%>" 448 371 image="new_pooled.png" 449 onclick="newMergedChild()"450 372 title="Merge…" 451 373 tooltip="<%=createPermission ? "Create new merged bioassay" : "You do not have permission to create derived bioassay"%>" 452 374 /> 453 375 <tbl:button 376 id="btnDeleteItems" 454 377 image="delete.png" 455 onclick="deleteItems()"456 378 title="Delete" 457 379 tooltip="Delete the selected items" 458 380 /> 459 381 <tbl:button 382 id="btnRestoreItems" 460 383 image="restore.png" 461 onclick="restoreItems()"462 384 title="Restore" 463 385 tooltip="Restore the selected (deleted) items" 464 386 /> 465 387 <tbl:button 388 id="btnShareItems" 466 389 image="share.png" 467 onclick="shareItems()"468 390 title="Share…" 469 391 tooltip="Share the selected items" 470 392 /> 471 393 <tbl:button 394 id="btnSetOwner" 472 395 image="take_ownership.png" 473 onclick="setOwner()"474 396 title="Set owner…" 475 397 tooltip="Change owner of the selected items" 476 398 /> 477 399 <tbl:button 400 id="btnColumns" 478 401 image="columns.png" 479 onclick="configureColumns()"480 402 title="Columns…" 481 403 tooltip="Show, hide and re-order columns" 482 404 /> 483 405 <tbl:button 406 id="btnImport" 407 data-plugin-type="IMPORT" 484 408 image="import.png" 485 onclick="runPlugin('ImportItems')"486 409 title="Import…" 487 410 tooltip="Import data" … … 489 412 /> 490 413 <tbl:button 414 id="btnExport" 415 data-plugin-type="EXPORT" 491 416 image="export.png" 492 onclick="runPlugin('ExportItems')"493 417 title="Export…" 494 418 tooltip="Export data" … … 496 420 /> 497 421 <tbl:button 422 id="btnRunPlugin" 423 data-plugin-type="OTHER" 498 424 image="runplugin.png" 499 onclick="runPlugin('RunListPlugin')"500 425 title="Run plugin…" 501 426 tooltip="Run a plugin" … … 616 541 visible="<%=item.isShared()%>" 617 542 /> </tbl:header> 618 <tbl:cell column="name"><div class="link" 619 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 543 <tbl:cell column="name"><div 544 class="link table-item" 545 data-item-id="<%=itemId%>" 546 data-no-edit="<%=writePermission ? 0 : 1 %>" 547 tabindex="0" 620 548 title="<%=tooltip%>"><%=name%></div></tbl:cell> 621 549 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 654 582 %> 655 583 <base:icon 584 subclass="link auto-init" 585 data-auto-init="new-child-bioassay" 586 data-item-id="<%=itemId %>" 656 587 image="add.png" 657 onclick="<%="newChildBioAssay("+itemId+")"%>"658 588 tooltip="Create new child bioassay" 659 589 visible="<%=mode.hasEditLink() && createPermission && usePermission %>" … … 688 618 %> 689 619 <base:icon 620 subclass="link auto-init" 621 data-auto-init="new-raw-bioassay" 622 data-item-id="<%=itemId %>" 690 623 image="add.png" 691 onclick="<%="newRawBioAssay("+itemId+")"%>"692 624 tooltip="Create new raw bioassay" 693 625 visible="<%=mode.hasEditLink() && createRawBioAssayPermission && usePermission %>" … … 863 795 864 796 <base:buttongroup subclass="dialogbuttons"> 865 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />866 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />867 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />797 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 798 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 799 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 868 800 </base:buttongroup> 869 801 -
trunk/www/views/derivedbioassays/view_bioassay.jsp
r6255 r6311 146 146 ExtensionsInvoker toolbarInvoker = ToolbarUtil.useExtensions(jspContext); 147 147 %> 148 <base:page title="<%=title%>" >149 <base:head scripts="table.js,tabcontrol .js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">148 <base:page title="<%=title%>" id="view-page"> 149 <base:head scripts="table.js,tabcontrol-2.js,~bioassays.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> 150 150 <ext:scripts context="<%=jspContext%>" /> 151 151 <ext:stylesheets context="<%=jspContext%>" /> 152 <script>153 function editItem()154 {155 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);156 }157 function deleteItem()158 {159 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');160 }161 function restoreItem()162 {163 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');164 }165 function shareItem()166 {167 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'ShareBioAssay', 600, 400);168 }169 function setOwner()170 {171 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);172 }173 function runItemPlugin(cmd)174 {175 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);176 }177 function newChildBioAssay()178 {179 Main.viewOrEditItem('<%=ID%>', 'DERIVEDBIOASSAY', 0, true, '&parent_id=<%=itemId%>');180 }181 function newRawBioAssay()182 {183 Main.viewOrEditItem('<%=ID%>', 'RAWBIOASSAY', 0, true, '&bioassay_id=<%=itemId%>');184 }185 </script>186 152 </base:head> 187 153 <base:body> … … 190 156 /><p:pathelement title="<%=HTML.encodeTags(bioAssay.getName())%>" 191 157 /></p:path> 158 <div id="page-data" data-item-id="<%=itemId%>"></div> 192 159 193 160 <t:tabcontrol … … 206 173 /> 207 174 <base:icon 175 id="btnDeletePermanently" 208 176 image="deleted.png" 209 onclick="deleteItemPermanently()"210 177 tooltip="This item has been flagged for deletion. Click to delete it now." 211 178 enabled="<%=deletePermanentlyPermission %>" 212 179 visible="<%=isRemoved%>" 213 180 /> 214 <base:icon image="used.png" 215 onclick="showUsingItems()" 181 <base:icon 182 id="btnUsingItems" 183 image="used.png" 216 184 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 217 185 visible="<%=isRemoved && isUsed%>" /> … … 220 188 <tbl:toolbar subclass="bottomborder"> 221 189 <tbl:button 190 id="btnEdit" 222 191 disabled="<%=!writePermission%>" 223 192 image="edit.png" 224 onclick="editItem()"225 193 title="Edit…" 226 194 tooltip="<%=writePermission ? "Edit this bioassay" : "You do not have permission to edit this bioassay"%>" 227 195 /> 228 196 <tbl:button 197 id="btnDelete" 229 198 disabled="<%=!deletePermission%>" 230 199 image="delete.png" 231 onclick="deleteItem()"232 200 title="Delete" 233 201 visible="<%=!bioAssay.isRemoved()%>" … … 235 203 /> 236 204 <tbl:button 205 id="btnRestore" 237 206 disabled="<%=!writePermission%>" 238 207 image="restore.png" 239 onclick="restoreItem()"240 208 title="Restore" 241 209 visible="<%=bioAssay.isRemoved()%>" … … 243 211 /> 244 212 <tbl:button 213 id="btnShare" 245 214 disabled="<%=!sharePermission%>" 246 215 image="share.png" 247 onclick="shareItem()"248 216 title="Share…" 249 217 tooltip="<%=sharePermission ? "Share this bioassay to other user, groups and projects" : "You do not have permission to share this bioassay"%>" 250 218 /> 251 219 <tbl:button 220 id="btnSetOwner" 252 221 disabled="<%=!setOwnerPermission%>" 253 222 image="take_ownership.png" 254 onclick="setOwner()"255 223 title="Set owner…" 256 224 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 257 225 /> 258 226 <tbl:button 227 id="btnNewChildBioAssay" 259 228 image="add.png" 260 onclick="newChildBioAssay()"261 229 title="New child bioassay…" 262 230 tooltip="Create a child bioassay from this bioassay" … … 264 232 /> 265 233 <tbl:button 234 id="btnNewRawBioAssay" 266 235 image="add.png" 267 onclick="newRawBioAssay()"268 236 title="New raw bioassay…" 269 237 tooltip="Create a raw bioassay from this bioassay" … … 271 239 /> 272 240 <tbl:button 241 id="btnImport" 273 242 image="import.png" 274 onclick="runItemPlugin('ImportItem')"243 data-plugin-type="IMPORT" 275 244 title="Import…" 276 245 tooltip="Import data" … … 278 247 /> 279 248 <tbl:button 280 image="export.png" 281 onclick="runItemPlugin('ExportItem')" 249 id="btnExport" 250 image="export.png" 251 data-plugin-type="EXPORT" 282 252 title="Export…" 283 253 tooltip="Export data" … … 285 255 /> 286 256 <tbl:button 287 image="runplugin.png" 288 onclick="runItemPlugin('RunPlugin')" 257 id="btnRunPlugin" 258 image="runplugin.png" 259 data-plugin-type="OTHER" 289 260 title="Run plugin…" 290 261 tooltip="Run a plugin" … … 292 263 /> 293 264 <tbl:button 294 image="runplugin.png" 295 onclick="runItemPlugin('RunAnalysisPlugin')" 265 id="btnRunAnalysisPlugin" 266 image="runplugin.png" 267 data-plugin-type="ANALYSIS" 296 268 title="Run analysis…" 297 269 tooltip="Run an analysis plugin with data from this bioassay" … … 302 274 <tbl:button 303 275 image="help.png" 304 onclick="<%="Main.openHelp('" + ID +"', 'derivedbioassay.view.properties')"%>" 276 subclass="auto-init" 277 data-auto-init="help" 278 data-help-id="derivedbioassay.view.properties" 305 279 title="Help…" 306 280 tooltip="Get help about this page" … … 757 731 758 732 <t:tab id="annotations" title="Annotations & parameters" 759 tooltip="View annotation values and protocol parameters" clazz="white" 760 activate="AnnotationsList.loadOnce()"> 733 tooltip="View annotation values and protocol parameters" clazz="white"> 761 734 <jsp:include page="../../common/annotations/list_frameset.jsp"> 762 735 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 767 740 768 741 <t:tab id="overview" title="Overview" 769 tooltip="Display a tree overview of related items" 770 activate="Overview.loadOnce()"> 742 tooltip="Display a tree overview of related items"> 771 743 <jsp:include page="../../common/overview/overview.jsp"> 772 744 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 777 749 <t:tab id="history" title="Change history" 778 750 tooltip="Displays a log of all modifications made to this item" 779 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" 780 activate="History.loadOnce()"> 751 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 781 752 <jsp:include page="../../common/history/frameset.jsp"> 782 753 <jsp:param name="item_type" value="<%=itemType.name()%>" /> -
trunk/www/views/experiments/edit_experiment.jsp
r6254 r6311 110 110 } 111 111 cc.removeObject("item"); 112 String[] selected = request.getParameterValues("rawbioassay_id"); 113 if (selected != null) 112 if (Values.getBoolean(request.getParameter("rawbioassays"))) 114 113 { 115 114 rbaQuery = RawBioAssay.getQuery(); 116 115 rbaQuery.restrict(Restrictions.in(Hql.property("id"), Expressions.parameter("selected"))); 117 rbaQuery.setParameter("selected", Arrays.asList(Values.getInt(selected)), Type.INT); 118 } 116 rbaQuery.setParameter("selected", sc.getCurrentContext(Item.RAWBIOASSAY).getSelected(), Type.INT); 117 } 118 119 119 } 120 120 else -
trunk/www/views/formulas/list_formulas.jsp
r6221 r6311 136 136 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 137 137 %> 138 <base:page title="<%=title==null ? "Formulas" : title%>" type="<%=mode.getPageType()%>" >139 <base:head scripts="table.js " styles="table.css,toolbar.css">138 <base:page title="<%=title==null ? "Formulas" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 139 <base:head scripts="table.js,~formulas.js" styles="table.css,toolbar.css"> 140 140 <ext:scripts context="<%=jspContext%>" /> 141 141 <ext:stylesheets context="<%=jspContext%>" /> 142 <script>143 var submitPage = 'index.jsp';144 var formId = 'formulas';145 function newItem()146 {147 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);148 }149 function editItem(itemId)150 {151 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);152 }153 function viewItem(itemId)154 {155 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);156 }157 function itemOnClick(evt, itemId)158 {159 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);160 }161 function deleteItems()162 {163 var frm = document.forms[formId];164 if (Forms.numChecked(frm) == 0)165 {166 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');167 return;168 }169 frm.action = submitPage;170 frm.cmd.value = 'DeleteItems';171 frm.submit();172 }173 function restoreItems()174 {175 var frm = document.forms[formId];176 if (Forms.numChecked(frm) == 0)177 {178 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');179 return;180 }181 frm.action = submitPage;182 frm.cmd.value = 'RestoreItems';183 frm.submit();184 }185 function setOwner()186 {187 Table.setOwnerOfItems(formId);188 }189 function shareItems()190 {191 Table.shareItems(formId);192 }193 function configureColumns()194 {195 Table.configureColumns(formId);196 }197 function runPlugin(cmd)198 {199 Table.submitToPopup(formId, cmd, 750, 500);200 }201 function returnSelected()202 {203 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);204 window.close();205 }206 </script>207 142 </base:head> 208 143 … … 432 367 > 433 368 <tbl:button 369 id="btnNewItem" 434 370 disabled="<%=!createPermission%>" 435 371 image="new.png" 436 onclick="newItem()"437 372 title="New…" 438 373 tooltip="<%=createPermission ? "Create new formula" : "You do not have permission to create formulas"%>" 439 374 /> 440 375 <tbl:button 376 id="btnDeleteItems" 441 377 image="delete.png" 442 onclick="deleteItems()"443 378 title="Delete" 444 379 tooltip="Delete the selected items" 445 380 /> 446 381 <tbl:button 382 id="btnRestoreItems" 447 383 image="restore.png" 448 onclick="restoreItems()"449 384 title="Restore" 450 385 tooltip="Restore the selected (deleted) items" 451 386 /> 452 387 <tbl:button 388 id="btnShareItems" 453 389 image="share.png" 454 onclick="shareItems()"455 390 title="Share…" 456 391 tooltip="Share the selected items" 457 392 /> 458 393 <tbl:button 394 id="btnSetOwner" 459 395 image="take_ownership.png" 460 onclick="setOwner()"461 396 title="Set owner…" 462 397 tooltip="Change owner of the selected items" 463 398 /> 464 399 <tbl:button 400 id="btnColumns" 465 401 image="columns.png" 466 onclick="configureColumns()"467 402 title="Columns…" 468 403 tooltip="Show, hide and re-order columns" 469 404 /> 470 405 <tbl:button 406 id="btnImport" 407 data-plugin-type="IMPORT" 471 408 image="import.png" 472 onclick="runPlugin('ImportItems')"473 409 title="Import…" 474 410 tooltip="Import data" … … 476 412 /> 477 413 <tbl:button 414 id="btnExport" 415 data-plugin-type="EXPORT" 478 416 image="export.png" 479 onclick="runPlugin('ExportItems')"480 417 title="Export…" 481 418 tooltip="Export data" … … 483 420 /> 484 421 <tbl:button 422 id="btnRunPlugin" 423 data-plugin-type="OTHER" 485 424 image="runplugin.png" 486 onclick="runPlugin('RunListPlugin')"487 425 title="Run plugin…" 488 426 tooltip="Run a plugin" … … 604 542 visible="<%=item.isShared()%>" 605 543 /> </tbl:header> 606 <tbl:cell column="name"><div class="link" 607 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 544 <tbl:cell column="name"><div 545 class="link table-item" 546 data-item-id="<%=itemId%>" 547 data-no-edit="<%=writePermission ? 0 : 1 %>" 548 tabindex="0" 608 549 title="<%=tooltip%>"><%=name%></div></tbl:cell> 609 550 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 683 624 684 625 <base:buttongroup subclass="dialogbuttons"> 685 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />686 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />687 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />626 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 627 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 628 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 688 629 </base:buttongroup> 689 630 -
trunk/www/views/formulas/view_formula.jsp
r6244 r6311 100 100 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 101 101 %> 102 <base:page title="<%=title%>" >103 <base:head scripts="table.js,tabcontrol .js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">102 <base:page title="<%=title%>" id="view-page"> 103 <base:head scripts="table.js,tabcontrol-2.js,~formulas.js" styles="table.css,toolbar.css,headertabcontrol.css,path.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%>', 'ShareFormula', 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(formula.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 formula" : "You do not have permission to edit this formula"%>" 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="<%=!formula.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="<%=formula.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 formula to other user, groups and projects" : "You do not have permission to share this formula"%>" 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 +"', 'formula.view.properties')"%>" 208 subclass="auto-init" 209 data-auto-init="help" 210 data-help-id="formula.view.properties" 242 211 title="Help…" 243 212 tooltip="Get help about this page" … … 347 316 <t:tab id="history" title="Change history" 348 317 tooltip="Displays a log of all modifications made to this item" 349 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" 350 activate="History.loadOnce()"> 318 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 351 319 <jsp:include page="../../common/history/frameset.jsp"> 352 320 <jsp:param name="item_type" value="<%=itemType.name()%>" /> -
trunk/www/views/items/list_items.jsp
r6221 r6311 136 136 "net.sf.basedb.clients.web.listcolumn.allitems"); 137 137 %> 138 <base:page title="All items" >139 <base:head scripts="table.js " styles="table.css,toolbar.css">138 <base:page title="All items" id="list-page"> 139 <base:head scripts="table.js,~items.js" styles="table.css,toolbar.css"> 140 140 <ext:scripts context="<%=jspContext%>" /> 141 141 <ext:stylesheets context="<%=jspContext%>" /> 142 <script>143 var submitPage = 'index.jsp';144 var formId = 'allItems';145 function itemOnClick(evt, itemId)146 {147 viewItem(itemId);148 }149 function deleteAllItems()150 {151 if (!confirm('You are about to PERMANENTLY DELETE all item.\n This can\'t be undone. Continue?'))152 {153 return;154 }155 var frm = document.forms[formId];156 frm.action = submitPage;157 frm.cmd.value = 'DeleteAllPermanently';158 frm.submit();159 }160 function deleteItems()161 {162 var frm = document.forms[formId];163 var numChecked = Forms.numChecked(frm, /item:/);164 if (numChecked == 0)165 {166 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');167 return;168 }169 frm.action = submitPage;170 frm.cmd.value = 'DeleteItems';171 frm.submit();172 }173 function restoreItems()174 {175 var frm = document.forms[formId];176 if (Forms.numChecked(frm, /item:/) == 0)177 {178 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');179 return;180 }181 frm.action = submitPage;182 frm.cmd.value = 'RestoreItems';183 frm.submit();184 }185 function shareItems()186 {187 Table.shareItems(submitPage, '<%=ID%>', formId, '<%=itemType.name()%>', 'ShareItems', /item:/);188 }189 function setOwner()190 {191 Table.setOwnerOfItems(formId, /item:/);192 }193 function configureColumns()194 {195 Table.configureColumns(formId);196 }197 </script>198 142 </base:head> 199 143 … … 256 200 <tbl:toolbar subclass="bottomborder"> 257 201 <tbl:button 202 id="btnDeleteItems" 258 203 image="delete.png" 259 onclick="deleteItems()"260 204 title="Delete" 261 205 tooltip="Mark the selected items for deletion" … … 263 207 /> 264 208 <tbl:button 209 id="btnRestoreItems" 265 210 image="restore.png" 266 onclick="restoreItems()"267 211 title="Restore" 268 212 tooltip="Restore the selected items" … … 270 214 /> 271 215 <tbl:button 216 id="btnShareItems" 272 217 image="share.png" 273 onclick="shareItems()"274 218 title="Share…" 275 219 tooltip="Share the selected items" … … 277 221 /> 278 222 <tbl:button 223 id="btnSetOwner" 279 224 image="take_ownership.png" 280 onclick="setOwner()"281 225 title="Set owner…" 282 226 tooltip="Change owner of the selected items" 283 227 /> 284 228 <tbl:button 229 id="btnColumns" 285 230 image="columns.png" 286 onclick="configureColumns()"287 231 title="Columns…" 288 232 tooltip="Show, hide and re-order columns" -
trunk/www/views/jobs/list_jobs.jsp
r6221 r6311 130 130 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 131 131 %> 132 <base:page title="<%=title==null ? "Jobs" : title%>" type="<%=mode.getPageType()%>" >133 <base:head scripts="table.js " styles="table.css,toolbar.css,progressbar.css">132 <base:page title="<%=title==null ? "Jobs" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 133 <base:head scripts="table.js,~jobs.js" styles="table.css,toolbar.css,progressbar.css"> 134 134 <ext:scripts context="<%=jspContext%>" /> 135 135 <ext:stylesheets context="<%=jspContext%>" /> 136 <script>137 var submitPage = 'index.jsp';138 var formId = 'jobs';139 function viewItem(itemId)140 {141 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);142 }143 function itemOnClick(evt, itemId)144 {145 viewItem(itemId);146 }147 function deleteItems()148 {149 var frm = document.forms[formId];150 if (Forms.numChecked(frm) == 0)151 {152 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');153 return;154 }155 frm.action = submitPage;156 frm.cmd.value = 'DeleteItems';157 frm.submit();158 }159 function restoreItems()160 {161 var frm = document.forms[formId];162 if (Forms.numChecked(frm) == 0)163 {164 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');165 return;166 }167 frm.action = submitPage;168 frm.cmd.value = 'RestoreItems';169 frm.submit();170 }171 function setOwner()172 {173 Table.setOwnerOfItems(formId);174 }175 function configureColumns()176 {177 Table.configureColumns(formId);178 }179 function runPlugin(cmd)180 {181 Table.submitToPopup(formId, cmd, 750, 500);182 }183 function returnSelected()184 {185 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);186 window.close();187 }188 </script>189 136 </base:head> 190 137 … … 437 384 > 438 385 <tbl:button 386 id="btnDeleteItems" 439 387 image="delete.png" 440 onclick="deleteItems()"441 388 title="Delete" 442 389 tooltip="Delete the selected items" 443 390 /> 444 391 <tbl:button 392 id="btnRestoreItems" 445 393 image="restore.png" 446 onclick="restoreItems()"447 394 title="Restore" 448 395 tooltip="Restore the selected (deleted) items" 449 396 /> 450 397 <tbl:button 398 id="btnSetOwner" 451 399 image="take_ownership.png" 452 onclick="setOwner()"453 400 title="Set owner…" 454 401 tooltip="Change owner of the selected items" 455 402 /> 456 403 <tbl:button 404 id="btnColumns" 457 405 image="columns.png" 458 onclick="configureColumns()"459 406 title="Columns…" 460 407 tooltip="Show, hide and re-order columns" 461 408 /> 462 409 <tbl:button 410 id="btnImport" 411 data-plugin-type="IMPORT" 463 412 image="import.png" 464 onclick="runPlugin('ImportItems')"465 413 title="Import…" 466 414 tooltip="Import data" … … 468 416 /> 469 417 <tbl:button 418 id="btnExport" 419 data-plugin-type="EXPORT" 470 420 image="export.png" 471 onclick="runPlugin('ExportItems')"472 421 title="Export…" 473 422 tooltip="Export data" … … 475 424 /> 476 425 <tbl:button 426 id="btnRunPlugin" 427 data-plugin-type="OTHER" 477 428 image="runplugin.png" 478 onclick="runPlugin('RunListPlugin')"479 429 title="Run plugin…" 480 430 tooltip="Run a plugin" … … 604 554 visible="<%=item.isRemoved()%>" 605 555 /> </tbl:header> 606 <tbl:cell column="name"><div class="link" onclick="itemOnClick(event, <%=itemId%>)" 556 <tbl:cell column="name"><div 557 class="link table-item" 558 data-item-id="<%=itemId%>" 559 data-no-edit="1" 560 tabindex="0" 607 561 title="<%=tooltip%>"><%=name%></div></tbl:cell> 608 562 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 762 716 763 717 <base:buttongroup subclass="dialogbuttons"> 764 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />765 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />766 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />718 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 719 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 720 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 767 721 </base:buttongroup> 768 722 -
trunk/www/views/jobs/view_job.jsp
r6199 r6311 178 178 } 179 179 %> 180 <base:page type="popup" title="<%=title%>"> 181 <base:head scripts="tabcontrol.js,table.js" styles="tabcontrol.css,progressbar.css,table.css"> 182 <script> 183 function autoUpdate() 184 { 185 var autoUpdate = <%=autoUpdate ? "true" : "false"%>; 186 if (autoUpdate) sendProgressUpdateRequest(); 187 } 188 function abortJob() 189 { 190 if (confirm('Are you sure? This action may not be undone')) 191 { 192 location.href = 'index.jsp?ID=<%=ID%>&cmd=AbortJob&item_id=<%=itemId%>'; 193 } 194 } 195 function restartJob(clearDryRun) 196 { 197 var parameterVersion = <%=parameterVersion%>; 198 var latestVersion = <%=latestParameterVersion%>; 199 var useLatestConfiguration = 0; 200 if (parameterVersion != latestVersion) 201 { 202 var msg = 'The configuration parameters for the plugin has changed since\n'; 203 msg += 'the job was added to the job queue. Do you want to use the new\n'; 204 msg += 'configuration parameters?\n\n'; 205 msg += 'Ok / Yes = Use the new parameters (version = '+latestVersion + ')\n'; 206 msg += 'Cancel / No = Use the current parameters (version = ' + parameterVersion + ')'; 207 if (confirm(msg)) useLatestConfiguration = 1; 208 } 209 var url = 'index.jsp?ID=<%=ID%>&cmd=RestartJob&item_id=<%=itemId%>'; 210 url += '&useLatestConfiguration='+useLatestConfiguration; 211 if (clearDryRun) url += '&clearDryRun=' + clearDryRun; 212 location.href = url; 213 } 214 function reconfigureJob() 215 { 216 location.href = '../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigureJob&job_id=<%=itemId%>'; 217 } 218 219 function deleteItemPermanently() 220 { 221 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted'); 222 } 223 function itemDeleted() 224 { 225 location.href = getRoot() + 'common/close_popup.jsp?ID=<%=ID%>&refresh_opener=1&wait=0'; 226 } 227 function showUsingItems() 228 { 229 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>); 230 } 231 232 var lastStatus = '<%=status.name()%>'; 233 function sendProgressUpdateRequest() 234 { 235 var request = Ajax.getXmlHttpRequest(); 236 var url = 'ajax.jsp?ID=<%=ID%>&cmd=GetProgress&item_id=<%=itemId%>&'+Math.random(); 237 request.open("GET", url, true); 238 Ajax.setReadyStateHandler(request, progressUpdateCallback); 239 request.send(null); 240 } 241 function progressUpdateCallback(request) 242 { 243 var progress = JSON.parse(request.responseText); 244 var nextAction = 'sendProgressUpdateRequest()'; 245 var nextTimeout = 1500; 246 if (progress && progress.status == 'ok') 247 { 248 var status = progress.jobStatus; 249 var message = progress.message; 250 var percentComplete = progress.percentComplete; 251 var runningTime = progress.runningTime; 252 253 if (lastStatus != status) 254 { 255 nextAction = 'location.reload()'; 256 nextTimeout = 100; 257 } 258 if (status == 'EXECUTING') 259 { 260 displayProgress(percentComplete, message, runningTime); 261 } 262 } 263 setTimeout(nextAction, nextTimeout); 264 } 265 266 function displayProgress(percentDone, message, runningTime) 267 { 268 // Percent complete 269 var doneElement = document.getElementById('percentDone'); 270 var remainElement = document.getElementById('percentRemain'); 271 var unknownElement = document.getElementById('percentUnknown'); 272 if (percentDone == -1) 273 { 274 Main.hide('percentDone'); 275 Main.hide('percentRemain'); 276 Main.show('percentUnknown'); 277 Main.hide('percentText'); 278 } 279 else 280 { 281 Main.hide('percentUnknown'); 282 Main.show('percentText'); 283 document.getElementById('percentText').innerHTML = percentDone+'%'; 284 doneElement.style.width = percentDone+'%'; 285 remainElement.style.width = (100-percentDone)+'%'; 286 Main.showHide('percentDone', percentDone > 0); 287 Main.showHide('percentRemain', percentDone < 100); 288 } 289 290 // Message 291 document.getElementById('message').innerHTML = message; 292 293 // Running time 294 document.getElementById('runningTime').innerHTML = runningTime; 295 } 296 </script> 297 </base:head> 298 <base:body onload="autoUpdate()"> 180 <base:page type="popup" title="<%=title%>" id="view-page"> 181 <base:head scripts="tabcontrol-2.js,table.js,~jobs.js" 182 styles="tabcontrol.css,progressbar.css,table.css" /> 183 <base:body> 299 184 <h1><%=title%> <base:help tabcontrol="main" /></h1> 185 <div id="page-data" 186 data-item-id="<%=itemId%>" 187 data-job-parameter-version="<%=parameterVersion %>" 188 data-latest-parameter-version="<%=latestParameterVersion %>" 189 data-job-status="<%=status.name()%>" 190 data-auto-update="<%=autoUpdate ? 1 : 0 %>" 191 ></div> 192 300 193 <t:tabcontrol id="main" 301 194 subclass="content dialogtabcontrol" … … 311 204 <div class="itemstatus"> 312 205 <base:icon 206 id="btnDeletePermanently" 313 207 image="deleted.png" 314 onclick="<%=deletePermanentlyPermission ? "deleteItemPermanently()" : null%>" 208 data-notify="btnDeletePermanently" 209 enabled="<%=deletePermanentlyPermission %>" 315 210 tooltip="<%=deletePermanentlyPermission ? "Permanently delete this item" : null%>" 316 211 visible="<%=isRemoved%>"> This item has been flagged for deletion<br></base:icon> 317 <base:icon image="used.png" 318 onclick="showUsingItems()" 212 <base:icon 213 id="btnUsingItems" 214 image="used.png" 319 215 tooltip="Show the items that are using this one" 320 216 visible="<%=isUsed%>"> This item is used by other items and can't be permanently deleted<br></base:icon> … … 394 290 { 395 291 %> 396 <td style="padding-left: 10px;"><base:button image="view.png" 292 <td style="padding-left: 10px;"><base:button 293 subclass="link auto-init" 294 data-auto-init="view-file" 295 data-file-id="<%=logFile.getId()%>" 296 image="view.png" 397 297 title="View log…" 398 onclick="<%="Main.viewFile('" + ID + "', " + logFile.getId() + ")"%>"399 298 tooltip="View the log file with detailed information about this job" 400 299 /></td> … … 697 596 { 698 597 %> 699 <base:button onclick="abortJob()" title="Abort…" image="abort.png" />598 <base:button id="btnAbort" title="Abort…" image="abort.png" /> 700 599 <% 701 600 } … … 708 607 { 709 608 %> 710 <base:button onclick="restartJob(0)" title="Restart job" 609 <base:button 610 id="btnRestartJob" 611 title="Restart job" 711 612 image="refresh.png" 712 613 tooltip="Try to run this job again with the same parameters" 713 614 /> 714 <base:button onclick="reconfigureJob()" title="Re-configure job" 615 <base:button 616 id="btnReconfigureJob" 617 title="Re-configure job" 715 618 image="runplugin.png" 716 619 tooltip="Change the parameters for this job and try again" … … 723 626 { 724 627 %> 725 <base:button onclick="restartJob(1)" title="Really run" 628 <base:button 629 id="btnRestartJob" 630 data-clear-dry-run="1" 631 title="Really run" 726 632 image="refresh.png" 727 633 tooltip="Run this dry-run job for real" … … 730 636 } 731 637 %> 732 <base:button onclick="window.close()" title="Close" />638 <base:button id="close" title="Close" /> 733 639 </base:buttongroup> 734 640 </base:body> -
trunk/www/views/permissiontemplates/edit_template.jsp
r6217 r6311 68 68 } 69 69 70 71 72 70 JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, GuiContext.item(itemType), template); 73 71 ExtensionsInvoker invoker = EditUtil.useEditExtensions(jspContext); 74 72 %> 75 <base:page type="popup" title="<%=title%>" >76 <base:head scripts="tabcontrol .js" styles="tabcontrol.css">73 <base:page type="popup" title="<%=title%>" id="edit-page"> 74 <base:head scripts="tabcontrol-2.js,~templates.js" styles="tabcontrol.css"> 77 75 <ext:scripts context="<%=jspContext%>" /> 78 76 <ext:stylesheets context="<%=jspContext%>" /> 79 <script>80 // Validate the "Permission template" tab81 function validatePermissionTemplate()82 {83 var frm = document.forms['template'];84 if (Main.trimString(frm.name.value) == '')85 {86 Forms.showNotification(frm.name, 'You must enter a name');87 return false;88 }89 return true;90 }91 92 // Submit the form93 function saveSettings()94 {95 var frm = document.forms['template'];96 if (TabControl.validateActiveTab('settings'))97 {98 frm.submit();99 }100 }101 102 function init()103 {104 <%105 if (template == null)106 {107 %>108 var frm = document.forms['template'];109 frm.name.focus();110 frm.name.select();111 <%112 }113 %>114 }115 </script>116 77 </base:head> 117 <base:body onload="init()">78 <base:body> 118 79 <h1><%=title%> <base:help tabcontrol="settings"/></h1> 119 80 <form action="index.jsp?ID=<%=ID%>" method="post" name="template"> … … 124 85 position="bottom" remember="<%=template != null%>" 125 86 extensions="<%=invoker%>"> 126 <t:tab id="info" title="Permission template" validate="validatePermissionTemplate()"helpid="permissiontemplate.edit">87 <t:tab id="info" title="Permission template" helpid="permissiontemplate.edit"> 127 88 <table class="fullform input100 smaller"> 128 89 <tr> 129 90 <th>Name</th> 130 <td><input class="text required" type="text" name="name" 91 <td><input class="text required auto-init" data-auto-init="<%=template == null ? "focus-select" : "focus" %>" 92 type="text" name="name" 131 93 value="<%=HTML.encodeTags(template == null ? Values.getString(cc.getPropertyValue("name"), "New template") : template.getName())%>" 132 94 maxlength="<%=PermissionTemplate.MAX_NAME_LENGTH%>"></td> … … 153 115 154 116 <base:buttongroup subclass="dialogbuttons"> 155 <base:button onclick="saveSettings()" title="Save" />156 <base:button onclick="window.close()" title="Cancel" />117 <base:button id="btnSave" title="Save" /> 118 <base:button id="close" title="Cancel" /> 157 119 </base:buttongroup> 158 120 </base:body> -
trunk/www/views/permissiontemplates/list_templates.jsp
r6221 r6311 93 93 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 94 94 %> 95 <base:page title="<%=title==null ? "Permission templates" : title%>" type="<%=mode.getPageType()%>" >96 <base:head scripts="table.js " styles="table.css,toolbar.css">95 <base:page title="<%=title==null ? "Permission templates" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 96 <base:head scripts="table.js,~templates.js" styles="table.css,toolbar.css"> 97 97 <ext:scripts context="<%=jspContext%>" /> 98 98 <ext:stylesheets context="<%=jspContext%>" /> 99 <script>100 var submitPage = 'index.jsp';101 var formId = 'templates';102 function newItem()103 {104 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);105 }106 function editItem(itemId)107 {108 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);109 }110 function viewItem(itemId)111 {112 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);113 }114 function itemOnClick(evt, itemId)115 {116 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);117 }118 function deleteItems()119 {120 var frm = document.forms[formId];121 if (Forms.numChecked(frm) == 0)122 {123 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');124 return;125 }126 frm.action = submitPage;127 frm.cmd.value = 'DeleteItems';128 frm.submit();129 }130 function restoreItems()131 {132 var frm = document.forms[formId];133 if (Forms.numChecked(frm) == 0)134 {135 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');136 return;137 }138 frm.action = submitPage;139 frm.cmd.value = 'RestoreItems';140 frm.submit();141 }142 function setOwner()143 {144 Table.setOwnerOfItems(formId);145 }146 function shareItems()147 {148 Table.shareItems(formId);149 }150 function configureColumns()151 {152 Table.configureColumns(formId);153 }154 function runPlugin(cmd)155 {156 Table.submitToPopup(formId, cmd, 750, 500);157 }158 function returnSelected()159 {160 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);161 window.close();162 }163 </script>164 99 </base:head> 165 100 … … 246 181 > 247 182 <tbl:button 183 id="btnNewItem" 248 184 disabled="<%=!createPermission%>" 249 185 image="new.png" 250 onclick="newItem()"251 186 title="New…" 252 187 tooltip="<%=createPermission ? "Create new permission template" : "You do not have permission to create permission templates"%>" 253 188 /> 254 189 <tbl:button 190 id="btnDeleteItems" 255 191 image="delete.png" 256 onclick="deleteItems()"257 192 title="Delete" 258 193 tooltip="Delete the selected items" 259 194 /> 260 195 <tbl:button 196 id="btnRestoreItems" 261 197 image="restore.png" 262 onclick="restoreItems()"263 198 title="Restore" 264 199 tooltip="Restore the selected (deleted) items" 265 200 /> 266 201 <tbl:button 202 id="btnShareItems" 267 203 image="share.png" 268 onclick="shareItems()"269 204 title="Share…" 270 205 tooltip="Share the selected items" 271 206 /> 272 207 <tbl:button 208 id="btnSetOwner" 273 209 image="take_ownership.png" 274 onclick="setOwner()"275 210 title="Set owner…" 276 211 tooltip="Change owner of the selected items" 277 212 /> 278 213 <tbl:button 214 id="btnColumns" 279 215 image="columns.png" 280 onclick="configureColumns()"281 216 title="Columns…" 282 217 tooltip="Show, hide and re-order columns" 283 218 /> 284 219 <tbl:button 220 id="btnImport" 221 data-plugin-type="IMPORT" 285 222 image="import.png" 286 onclick="runPlugin('ImportItems')"287 223 title="Import…" 288 224 tooltip="Import data" … … 290 226 /> 291 227 <tbl:button 228 id="btnExport" 229 data-plugin-type="EXPORT" 292 230 image="export.png" 293 onclick="runPlugin('ExportItems')"294 231 title="Export…" 295 232 tooltip="Export data" … … 297 234 /> 298 235 <tbl:button 236 id="btnRunPlugin" 237 data-plugin-type="OTHER" 299 238 image="runplugin.png" 300 onclick="runPlugin('RunListPlugin')"301 239 title="Run plugin…" 302 240 tooltip="Run a plugin" … … 363 301 PermissionTemplate item = templates.next(); 364 302 int itemId = item.getId(); 365 366 303 367 304 boolean deletePermission = item.hasPermission(Permission.DELETE); … … 417 354 visible="<%=item.isShared()%>" 418 355 /> </tbl:header> 419 <tbl:cell column="name"><div class="link" 420 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 356 <tbl:cell column="name"><div 357 class="link table-item" 358 data-item-id="<%=itemId%>" 359 data-no-edit="<%=writePermission ? 0 : 1 %>" 360 tabindex="0" 421 361 title="<%=tooltip%>"><%=name%></div></tbl:cell> 422 362 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 472 412 473 413 <base:buttongroup subclass="dialogbuttons"> 474 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />475 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />476 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />414 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 415 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 416 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 477 417 </base:buttongroup> 478 418 -
trunk/www/views/permissiontemplates/view_template.jsp
r6142 r6311 95 95 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 96 96 %> 97 <base:page title="<%=title%>" >98 <base:head scripts="tab le.js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">97 <base:page title="<%=title%>" id="view-page"> 98 <base:head scripts="tabcontrol-2.js,table.js,~templates.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> 99 99 <ext:scripts context="<%=jspContext%>" /> 100 100 <ext:stylesheets context="<%=jspContext%>" /> 101 <script>102 function editItem()103 {104 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);105 }106 function shareItem()107 {108 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'SharePermissionTemplate', 600, 400);109 }110 function deleteItem()111 {112 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');113 }114 function restoreItem()115 {116 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');117 }118 function deleteItemPermanently()119 {120 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');121 }122 function itemDeleted()123 {124 Main.listItems('<%=ID%>', '<%=itemType.name()%>');125 }126 function showUsingItems()127 {128 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);129 }130 function setOwner()131 {132 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);133 }134 function runPlugin(cmd)135 {136 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);137 }138 </script>139 101 </base:head> 140 102 <base:body> … … 143 105 /><p:pathelement title="<%=HTML.encodeTags(template.getName())%>" 144 106 /></p:path> 107 <div id="page-data" data-item-id="<%=itemId%>"></div> 145 108 146 109 <t:tabcontrol … … 159 122 /> 160 123 <base:icon 124 id="btnDeletePermanently" 161 125 image="deleted.png" 162 onclick="deleteItemPermanently()"163 126 tooltip="This item has been flagged for deletion. Click to delete it now." 164 127 enabled="<%=deletePermanentlyPermission %>" 165 128 visible="<%=isRemoved%>" 166 129 /> 167 <base:icon image="used.png" 168 onclick="showUsingItems()" 130 <base:icon 131 id="btnUsingItems" 132 image="used.png" 169 133 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 170 134 visible="<%=isRemoved && isUsed%>" /> … … 173 137 <tbl:toolbar subclass="bottomborder"> 174 138 <tbl:button 139 id="btnEdit" 175 140 disabled="<%=!writePermission%>" 176 141 image="edit.png" 177 onclick="editItem()"178 142 title="Edit…" 179 143 tooltip="<%=writePermission ? "Edit this permission template" : "You do not have permission to edit this permission template"%>" 180 144 /> 181 145 <tbl:button 146 id="btnDelete" 182 147 disabled="<%=!deletePermission%>" 183 148 image="delete.png" 184 onclick="deleteItem()"185 149 title="Delete" 186 150 visible="<%=!template.isRemoved()%>" … … 188 152 /> 189 153 <tbl:button 154 id="btnRestore" 190 155 disabled="<%=!writePermission%>" 191 156 image="restore.png" 192 onclick="restoreItem()"193 157 title="Restore" 194 158 visible="<%=template.isRemoved()%>" … … 196 160 /> 197 161 <tbl:button 162 id="btnShare" 198 163 disabled="<%=!sharePermission%>" 199 164 image="share.png" 200 onclick="shareItem()"201 165 title="Permissions…" 202 166 tooltip="<%=sharePermission ? "Set permission on this permission template" : "You do not have permission to modify this permission template"%>" 203 167 /> 204 168 <tbl:button 169 id="btnSetOwner" 205 170 disabled="<%=!setOwnerPermission%>" 206 171 image="take_ownership.png" 207 onclick="setOwner()"208 172 title="Set owner…" 209 173 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 210 174 /> 211 175 <tbl:button 176 id="btnImport" 212 177 image="import.png" 213 onclick="runPlugin('ImportItem')"178 data-plugin-type="IMPORT" 214 179 title="Import…" 215 180 tooltip="Import data" … … 217 182 /> 218 183 <tbl:button 219 image="export.png" 220 onclick="runPlugin('ExportItem')" 184 id="btnExport" 185 image="export.png" 186 data-plugin-type="EXPORT" 221 187 title="Export…" 222 188 tooltip="Export data" … … 224 190 /> 225 191 <tbl:button 226 image="runplugin.png" 227 onclick="runPlugin('RunPlugin')" 192 id="btnRunPlugin" 193 image="runplugin.png" 194 data-plugin-type="OTHER" 228 195 title="Run plugin…" 229 196 tooltip="Run a plugin" … … 234 201 <tbl:button 235 202 image="help.png" 236 onclick="<%="Main.openHelp('" + ID +"', 'permissiontemplate.view.properties')"%>" 203 subclass="auto-init" 204 data-auto-init="help" 205 data-help-id="permissiontemplate.view.properties" 237 206 title="Help…" 238 207 tooltip="Get help about this page" -
trunk/www/views/physicalbioassays/list_bioassays.jsp
r6221 r6311 135 135 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 136 136 %> 137 <base:page title="<%=title==null ? "Physical bioassays" : title%>" type="<%=mode.getPageType()%>" >138 <base:head scripts="table.js " styles="table.css,toolbar.css">137 <base:page title="<%=title==null ? "Physical bioassays" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 138 <base:head scripts="table.js,~bioassays.js" styles="table.css,toolbar.css"> 139 139 <ext:scripts context="<%=jspContext%>" /> 140 140 <ext:stylesheets context="<%=jspContext%>" /> 141 <script>142 var submitPage = 'index.jsp';143 var formId = 'bioassays';144 function newItem()145 {146 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);147 }148 function editItem(itemId)149 {150 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);151 }152 function viewItem(itemId)153 {154 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);155 }156 function itemOnClick(evt, itemId)157 {158 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);159 }160 function deleteItems()161 {162 var frm = document.forms[formId];163 if (Forms.numChecked(frm) == 0)164 {165 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');166 return;167 }168 frm.action = submitPage;169 frm.cmd.value = 'DeleteItems';170 frm.submit();171 }172 function restoreItems()173 {174 var frm = document.forms[formId];175 if (Forms.numChecked(frm) == 0)176 {177 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');178 return;179 }180 frm.action = submitPage;181 frm.cmd.value = 'RestoreItems';182 frm.submit();183 }184 function setOwner()185 {186 Table.setOwnerOfItems(formId);187 }188 function shareItems()189 {190 Table.shareItems(formId);191 }192 function configureColumns()193 {194 Table.configureColumns(formId);195 }196 function runPlugin(cmd)197 {198 Table.submitToPopup(formId, cmd, 750, 500);199 }200 function returnSelected()201 {202 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);203 window.close();204 }205 function newDerivedBioAssay(bioAssayId)206 {207 Main.viewOrEditItem('<%=ID%>', 'DERIVEDBIOASSAY', 0, true, '&physicalbioassay_id='+bioAssayId);208 }209 function newMergedDerivedBioAssay()210 {211 Table.poolItems(submitPage, '<%=ID%>', formId, '<%=itemType.name()%>', 'NewMergedDerivedBioAssay');212 }213 </script>214 141 </base:head> 215 142 … … 413 340 > 414 341 <tbl:button 342 id="btnNewItem" 415 343 disabled="<%=!createPermission%>" 416 344 image="new.png" 417 onclick="newItem()"418 345 title="New…" 419 346 tooltip="<%=createPermission ? "Create new physical bioassay" : "You do not have permission to create physical bioassays"%>" 420 347 /> 421 348 <tbl:button 349 id="btnNewMergedDerivedBioAssay" 422 350 disabled="<%=!createDerivedBioAssayPermission %>" 423 351 image="add.png" 424 onclick="newMergedDerivedBioAssay()"425 352 title="New derived bioassay…" 426 353 tooltip="<%=createDerivedBioAssayPermission ? "Create new derived bioassay from the selected physical bioassays" : "You do not have permission to create derived bioassays"%>" 427 354 /> 428 355 <tbl:button 356 id="btnDeleteItems" 429 357 image="delete.png" 430 onclick="deleteItems()"431 358 title="Delete" 432 359 tooltip="Delete the selected items" 433 360 /> 434 361 <tbl:button 362 id="btnRestoreItems" 435 363 image="restore.png" 436 onclick="restoreItems()"437 364 title="Restore" 438 365 tooltip="Restore the selected (deleted) items" 439 366 /> 440 367 <tbl:button 368 id="btnShareItems" 441 369 image="share.png" 442 onclick="shareItems()"443 370 title="Share…" 444 371 tooltip="Share the selected items" 445 372 /> 446 373 <tbl:button 374 id="btnSetOwner" 447 375 image="take_ownership.png" 448 onclick="setOwner()"449 376 title="Set owner…" 450 377 tooltip="Change owner of the selected items" 451 378 /> 452 379 <tbl:button 380 id="btnColumns" 453 381 image="columns.png" 454 onclick="configureColumns()"455 382 title="Columns…" 456 383 tooltip="Show, hide and re-order columns" 457 384 /> 458 385 <tbl:button 386 id="btnImport" 387 data-plugin-type="IMPORT" 459 388 image="import.png" 460 onclick="runPlugin('ImportItems')"461 389 title="Import…" 462 390 tooltip="Import data" … … 464 392 /> 465 393 <tbl:button 394 id="btnExport" 395 data-plugin-type="EXPORT" 466 396 image="export.png" 467 onclick="runPlugin('ExportItems')"468 397 title="Export…" 469 398 tooltip="Export data" … … 471 400 /> 472 401 <tbl:button 402 id="btnRunPlugin" 403 data-plugin-type="OTHER" 473 404 image="runplugin.png" 474 onclick="runPlugin('RunListPlugin')"475 405 title="Run plugin…" 476 406 tooltip="Run a plugin" … … 505 435 image="check_uncheck.png" 506 436 tooltip="Check/uncheck all" 507 508 437 /></tbl:header> 509 438 <tbl:header … … 539 468 int itemId = item.getId(); 540 469 boolean usePermission = item.hasPermission(Permission.USE); 541 542 543 470 boolean deletePermission = item.hasPermission(Permission.DELETE); 544 471 boolean sharePermission = item.hasPermission(Permission.SET_PERMISSION); … … 592 519 visible="<%=item.isShared()%>" 593 520 /> </tbl:header> 594 <tbl:cell column="name"><div class="link" 595 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 521 <tbl:cell column="name"><div 522 class="link table-item" 523 data-item-id="<%=itemId%>" 524 data-no-edit="<%=writePermission ? 0 : 1 %>" 525 tabindex="0" 596 526 title="<%=tooltip%>"><%=name%></div></tbl:cell> 597 527 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 703 633 %> 704 634 <base:icon 635 subclass="link auto-init" 636 data-auto-init="new-derived-bioassay" 637 data-item-id="<%=itemId %>" 705 638 image="add.png" 706 onclick="<%="newDerivedBioAssay("+itemId+")"%>"707 639 tooltip="Create new derived bioassay" 708 640 visible="<%=mode.hasEditLink() && createDerivedBioAssayPermission && usePermission %>" … … 799 731 800 732 <base:buttongroup subclass="dialogbuttons"> 801 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />802 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />803 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />733 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 734 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 735 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 804 736 </base:buttongroup> 805 737 -
trunk/www/views/physicalbioassays/view_bioassay.jsp
r6268 r6311 117 117 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 118 118 %> 119 <base:page title="<%=title%>" >120 <base:head scripts="table.js,tabcontrol .js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">119 <base:page title="<%=title%>" id="view-page"> 120 <base:head scripts="table.js,tabcontrol-2.js,~bioassays.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css"> 121 121 <ext:scripts context="<%=jspContext%>" /> 122 122 <ext:stylesheets context="<%=jspContext%>" /> 123 <script>124 function editItem()125 {126 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);127 }128 function shareItem()129 {130 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'SharePhysicalBioAssay', 600, 400);131 }132 function deleteItem()133 {134 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');135 }136 function restoreItem()137 {138 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');139 }140 function deleteItemPermanently()141 {142 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');143 }144 function itemDeleted()145 {146 Main.listItems('<%=ID%>', '<%=itemType.name()%>');147 }148 function showUsingItems()149 {150 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);151 }152 function setOwner()153 {154 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);155 }156 function runPlugin(cmd)157 {158 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);159 }160 function newDerivedBioAssay()161 {162 Main.viewOrEditItem('<%=ID%>', 'DERIVEDBIOASSAY', 0, true, '&physicalbioassay_id=<%=itemId%>');163 }164 </script>165 123 </base:head> 166 124 <base:body> … … 169 127 /><p:pathelement title="<%=HTML.encodeTags(pba.getName())%>" 170 128 /></p:path> 129 <div id="page-data" data-item-id="<%=itemId%>"></div> 130 171 131 <t:tabcontrol 172 132 id="main" … … 184 144 /> 185 145 <base:icon 146 id="btnDeletePermanently" 186 147 image="deleted.png" 187 onclick="deleteItemPermanently()"188 148 tooltip="This item has been flagged for deletion. Click to delete it now." 189 149 enabled="<%=deletePermanentlyPermission %>" 190 150 visible="<%=isRemoved%>" 191 151 /> 192 <base:icon image="used.png" 193 onclick="showUsingItems()" 152 <base:icon 153 id="btnUsingItems" 154 image="used.png" 194 155 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 195 156 visible="<%=isRemoved && isUsed%>" /> … … 198 159 <tbl:toolbar subclass="bottomborder"> 199 160 <tbl:button 161 id="btnEdit" 200 162 disabled="<%=!writePermission%>" 201 163 image="edit.png" 202 onclick="editItem()"203 164 title="Edit…" 204 165 tooltip="<%=writePermission ? "Edit this physical bioassay" : "You do not have permission to edit this physical bioassay"%>" 205 166 /> 206 167 <tbl:button 168 id="btnDelete" 207 169 disabled="<%=!deletePermission%>" 208 170 image="delete.png" 209 onclick="deleteItem()"210 171 title="Delete" 211 172 visible="<%=!pba.isRemoved()%>" … … 213 174 /> 214 175 <tbl:button 176 id="btnRestore" 215 177 disabled="<%=!writePermission%>" 216 178 image="restore.png" 217 onclick="restoreItem()"218 179 title="Restore" 219 180 visible="<%=pba.isRemoved()%>" … … 221 182 /> 222 183 <tbl:button 184 id="btnShare" 223 185 disabled="<%=!sharePermission%>" 224 186 image="share.png" 225 onclick="shareItem()"226 187 title="Share…" 227 188 tooltip="<%=sharePermission ? "Share this physical bioassay to other user, groups and projects" : "You do not have permission to share this physical bioassay"%>" 228 189 /> 229 190 <tbl:button 191 id="btnSetOwner" 230 192 disabled="<%=!setOwnerPermission%>" 231 193 image="take_ownership.png" 232 onclick="setOwner()"233 194 title="Set owner…" 234 195 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 235 196 /> 236 197 <tbl:button 198 id="btnNewDerivedBioAssay" 237 199 image="add.png" 238 onclick="newDerivedBioAssay()"239 200 title="New derived bioassay…" 240 201 tooltip="Create a derived bioassay from this bioassay" … … 242 203 /> 243 204 <tbl:button 205 id="btnImport" 244 206 image="import.png" 245 onclick="runPlugin('ImportItem')"207 data-plugin-type="IMPORT" 246 208 title="Import…" 247 209 tooltip="Import data" … … 249 211 /> 250 212 <tbl:button 251 image="export.png" 252 onclick="runPlugin('ExportItem')" 213 id="btnExport" 214 image="export.png" 215 data-plugin-type="EXPORT" 253 216 title="Export…" 254 217 tooltip="Export data" … … 256 219 /> 257 220 <tbl:button 258 image="runplugin.png" 259 onclick="runPlugin('RunPlugin')" 221 id="btnRunPlugin" 222 image="runplugin.png" 223 data-plugin-type="OTHER" 260 224 title="Run plugin…" 261 225 tooltip="Run a plugin" … … 266 230 <tbl:button 267 231 image="help.png" 268 onclick="<%="Main.openHelp('" + ID +"', 'physicalbioassay.view.properties')"%>" 232 subclass="auto-init" 233 data-auto-init="help" 234 data-help-id="physicalbioassay.view.properties" 269 235 title="Help…" 270 236 tooltip="Get help about this page" … … 511 477 <jsp:param name="title" value="Shared to" /> 512 478 </jsp:include> 513 514 479 </t:tab> 515 480 516 481 <t:tab id="annotations" title="Annotations & parameters" 517 tooltip="View annotation values and protocol parameters" clazz="white" 518 activate="AnnotationsList.loadOnce()"> 482 tooltip="View annotation values and protocol parameters" clazz="white"> 519 483 <jsp:include page="../../common/annotations/list_frameset.jsp"> 520 484 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 525 489 526 490 <t:tab id="overview" title="Overview" 527 tooltip="Display a tree overview of related items" 528 activate="Overview.loadOnce()"> 491 tooltip="Display a tree overview of related items"> 529 492 <jsp:include page="../../common/overview/overview.jsp"> 530 493 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 535 498 <t:tab id="history" title="Change history" 536 499 tooltip="Displays a log of all modifications made to this item" 537 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" 538 activate="History.loadOnce()"> 500 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 539 501 <jsp:include page="../../common/history/frameset.jsp"> 540 502 <jsp:param name="item_type" value="<%=itemType.name()%>" /> -
trunk/www/views/rawbioassays/index.jsp
r6192 r6311 543 543 redirect = "../../common/plugin/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&main_type=OTHER&title=Run+plugin"; 544 544 } 545 else if ("NewExperiment".equals(cmd)) 546 { 547 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 548 redirect = "../experiments/index.jsp?ID="+ID+"&cmd=NewItem&rawbioassays=1"; 549 } 545 550 else if ("CreateSpotImages".equals(cmd)) 546 551 { -
trunk/www/views/rawbioassays/list_rawbioassays.jsp
r6221 r6311 143 143 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 144 144 %> 145 <base:page title="<%=title==null ? "Raw bioassays" : title%>" type="<%=mode.getPageType()%>" >146 <base:head scripts="table.js " styles="table.css,toolbar.css">145 <base:page title="<%=title==null ? "Raw bioassays" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 146 <base:head scripts="table.js,~bioassays.js" styles="table.css,toolbar.css"> 147 147 <ext:scripts context="<%=jspContext%>" /> 148 148 <ext:stylesheets context="<%=jspContext%>" /> 149 <script>150 var submitPage = 'index.jsp';151 var formId = 'rawbioassays';152 function newItem()153 {154 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);155 }156 function editItem(itemId)157 {158 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);159 }160 function viewItem(itemId)161 {162 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);163 }164 function itemOnClick(evt, itemId)165 {166 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);167 }168 function deleteItems()169 {170 var frm = document.forms[formId];171 if (Forms.numChecked(frm) == 0)172 {173 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');174 return;175 }176 frm.action = submitPage;177 frm.cmd.value = 'DeleteItems';178 frm.submit();179 }180 function restoreItems()181 {182 var frm = document.forms[formId];183 if (Forms.numChecked(frm) == 0)184 {185 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');186 return;187 }188 frm.action = submitPage;189 frm.cmd.value = 'RestoreItems';190 frm.submit();191 }192 function setOwner()193 {194 Table.setOwnerOfItems(formId);195 }196 function shareItems()197 {198 Table.shareItems(formId);199 }200 function configureColumns()201 {202 Table.configureColumns(formId);203 }204 function runPlugin(cmd)205 {206 Table.submitToPopup(formId, cmd, 750, 500);207 }208 function returnSelected()209 {210 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);211 window.close();212 }213 function newExperiment()214 {215 var frm = document.forms[formId];216 var selected = Table.getSelected(formId);217 if (selected.length == 0)218 {219 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');220 return;221 }222 var extraUrl = '&rawbioassay_id='+selected.join('&rawbioassay_id=');223 Main.viewOrEditItem('<%=ID%>', 'EXPERIMENT', 0, true, extraUrl);224 }225 </script>226 149 </base:head> 227 150 … … 517 440 > 518 441 <tbl:button 442 id="btnNewItem" 519 443 disabled="<%=!createPermission%>" 520 444 image="new.png" 521 onclick="newItem()"522 445 title="New…" 523 446 tooltip="<%=createPermission ? "Create new raw bioassay" : "You do not have permission to create raw bioassays"%>" 524 447 /> 525 448 <tbl:button 449 id="btnDeleteItems" 526 450 image="delete.png" 527 onclick="deleteItems()"528 451 title="Delete" 529 452 tooltip="Delete the selected items" 530 453 /> 531 454 <tbl:button 455 id="btnRestoreItems" 532 456 image="restore.png" 533 onclick="restoreItems()"534 457 title="Restore" 535 458 tooltip="Restore the selected (deleted) items" 536 459 /> 537 460 <tbl:button 461 id="btnShareItems" 538 462 image="share.png" 539 onclick="shareItems()"540 463 title="Share…" 541 464 tooltip="Share the selected items" 542 465 /> 543 466 <tbl:button 467 id="btnSetOwner" 544 468 image="take_ownership.png" 545 onclick="setOwner()"546 469 title="Set owner…" 547 470 tooltip="Change owner of the selected items" 548 471 /> 549 472 <tbl:button 473 id="btnColumns" 550 474 image="columns.png" 551 onclick="configureColumns()"552 475 title="Columns…" 553 476 tooltip="Show, hide and re-order columns" 554 477 /> 555 478 <tbl:button 479 id="btnNewExperiment" 556 480 image="add.png" 557 onclick="newExperiment()"558 481 title="New experiment…" 559 482 tooltip="Create a new experiment from the selected raw bioassays" … … 561 484 /> 562 485 <tbl:button 486 id="btnImport" 487 data-plugin-type="IMPORT" 563 488 image="import.png" 564 onclick="runPlugin('ImportItems')"565 489 title="Import…" 566 490 tooltip="Import data" … … 568 492 /> 569 493 <tbl:button 494 id="btnExport" 495 data-plugin-type="EXPORT" 570 496 image="export.png" 571 onclick="runPlugin('ExportItems')"572 497 title="Export…" 573 498 tooltip="Export data" … … 575 500 /> 576 501 <tbl:button 502 id="btnRunPlugin" 503 data-plugin-type="OTHER" 577 504 image="runplugin.png" 578 onclick="runPlugin('RunListPlugin')"579 505 title="Run plugin…" 580 506 tooltip="Run a plugin" … … 701 627 visible="<%=item.isShared()%>" 702 628 /> </tbl:header> 703 <tbl:cell column="name"><div class="link" 704 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 629 <tbl:cell column="name"><div 630 class="link table-item" 631 data-item-id="<%=itemId%>" 632 data-no-edit="<%=writePermission ? 0 : 1 %>" 633 tabindex="0" 705 634 title="<%=tooltip%>"><%=name%></div></tbl:cell> 706 635 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 906 835 907 836 <base:buttongroup subclass="dialogbuttons"> 908 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />909 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />910 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />837 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 838 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 839 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 911 840 </base:buttongroup> 912 841 -
trunk/www/views/rawbioassays/rawdata/list_rawdata.jsp
r6221 r6311 145 145 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 146 146 %> 147 <base:page title="<%=title%>" >148 <base:head scripts="table.js,tabcontrol .js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">147 <base:page title="<%=title%>" id="list-page"> 148 <base:head scripts="table.js,tabcontrol-2.js,~rawdata.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> 149 149 <ext:scripts context="<%=jspContext%>" /> 150 150 <ext:stylesheets context="<%=jspContext%>" /> 151 <script>152 var submitPage = 'index.jsp';153 var formId = 'rawdata';154 function viewItem(itemId)155 {156 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false, '&rawbioassay_id=<%=rawBioAssayId%>');157 }158 function itemOnClick(evt, itemId)159 {160 viewItem(itemId);161 }162 function configureColumns()163 {164 Table.configureColumns(formId);165 }166 function runPlugin(cmd)167 {168 Table.submitToPopup(formId, cmd, 750, 500);169 }170 function returnSelected()171 {172 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);173 window.close();174 }175 function switchTab(tabControlId, tabId)176 {177 if (tabId == 'properties' || tabId == 'annotations' || tabId == 'overview' || tabId == 'history')178 {179 location.href = '../index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=rawBioAssayId%>&tab='+tabId;180 }181 else182 {183 TabControl.setActiveTab(tabControlId, tabId);184 }185 }186 function newReporterList()187 {188 Table.submitToPopup(formId, 'CreateReporterList', 600, 400);189 }190 </script>191 151 </base:head> 192 152 … … 200 160 id="main" 201 161 subclass="mastertabcontrol content" 202 active="rawdata" switch="switchTab">162 active="rawdata"> 203 163 <t:tab id="properties" title="Properties" /> 204 164 <t:tab id="annotations" title="Annotations & parameters" … … 594 554 > 595 555 <tbl:button 556 id="btnColumns" 596 557 image="columns.png" 597 onclick="configureColumns()"598 558 title="Columns…" 599 559 tooltip="Show, hide and re-order columns" 600 560 /> 601 561 <tbl:button 562 id="btnNewReporterList" 602 563 image="add.png" 603 onclick="newReporterList()"604 564 title="New reporter list…" 605 565 tooltip="Create a new reporter list from matching spots" … … 607 567 /> 608 568 <tbl:button 569 id="btnImport" 570 data-plugin-type="IMPORT" 609 571 image="import.png" 610 onclick="runPlugin('ImportItems')"611 572 title="Import…" 612 573 tooltip="Import data" … … 614 575 /> 615 576 <tbl:button 577 id="btnExport" 578 data-plugin-type="EXPORT" 616 579 image="export.png" 617 onclick="runPlugin('ExportItems')"618 580 title="Export…" 619 581 tooltip="Export data" … … 621 583 /> 622 584 <tbl:button 585 id="btnRunPlugin" 586 data-plugin-type="OTHER" 623 587 image="runplugin.png" 624 onclick="runPlugin('RunListPlugin')"625 588 title="Run plugin…" 626 589 tooltip="Run a plugin" … … 721 684 visible="<%=mode.hasIcons()%>" 722 685 ></tbl:header> 723 <tbl:cell column="position"><div class="link" onclick="itemOnClick(event, <%=itemId%>)" 686 <tbl:cell column="position"><div 687 class="link table-item" 688 data-item-id="<%=itemId%>" 689 data-extra-url="<%="&rawbioassay_id="+rawBioAssayId%>" 690 tabindex="0" 724 691 title="<%=tooltip%>"><%=item.getPosition()%></div></tbl:cell> 725 692 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 909 876 910 877 <base:buttongroup> 911 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />912 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />913 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />878 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 879 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 880 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 914 881 </base:buttongroup> 915 882 -
trunk/www/views/rawbioassays/rawdata/view_rawdata.jsp
r6143 r6311 91 91 WellCoordinateFormatter columnFormatter = new WellCoordinateFormatter(false); 92 92 %> 93 <base:page title="<%=title%>" type="popup"> 94 <base:head scripts="tabcontrol.js" styles="tabcontrol.css"> 95 </base:head> 93 <base:page title="<%=title%>" type="popup" id="view-page"> 94 <base:head scripts="tabcontrol-2.js,~rawdata.js" styles="tabcontrol.css" /> 96 95 <base:body> 97 96 <h1><%=title%></h1> … … 417 416 418 417 <base:buttongroup subclass="dialogbuttons"> 419 <base:button onclick="window.close()" title="Close" />418 <base:button id="close" title="Close" /> 420 419 </base:buttongroup> 421 420 -
trunk/www/views/rawbioassays/view_rawbioassay.jsp
r6255 r6311 134 134 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 135 135 %> 136 <base:page title="<%=title%>" >137 <base:head scripts="table.js,tabcontrol .js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">136 <base:page title="<%=title%>" id="view-page"> 137 <base:head scripts="table.js,tabcontrol-2.js,~bioassays.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> 138 138 <ext:scripts context="<%=jspContext%>" /> 139 139 <ext:stylesheets context="<%=jspContext%>" /> 140 <script>141 function editItem()142 {143 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);144 }145 function shareItem()146 {147 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'ShareRawBioAssay', 600, 400);148 }149 function deleteItem()150 {151 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');152 }153 function restoreItem()154 {155 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');156 }157 function deleteItemPermanently()158 {159 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');160 }161 function itemDeleted()162 {163 Main.listItems('<%=ID%>', '<%=itemType.name()%>');164 }165 function showUsingItems()166 {167 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);168 }169 function setOwner()170 {171 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);172 }173 function runPlugin(cmd)174 {175 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);176 }177 function viewRawData()178 {179 location.href = 'rawdata/index.jsp?ID=<%=ID%>&cmd=List&rawbioassay_id=<%=itemId%>';180 }181 function editSpotImages()182 {183 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=EditSpotImages&item_id=<%=itemId%>', 'EditSpotImages', 600, 400);184 }185 function switchTab(tabControlId, tabId)186 {187 if (TabControl.isActive(tabControlId, tabId)) return;188 if (tabId == 'rawdata')189 {190 viewRawData();191 }192 else193 {194 TabControl.setActiveTab(tabControlId, tabId);195 }196 }197 </script>198 140 </base:head> 199 141 <base:body> … … 202 144 /><p:pathelement title="<%=HTML.encodeTags(rawBioAssay.getName())%>" 203 145 /></p:path> 146 <div id="page-data" data-item-id="<%=itemId%>"></div> 204 147 205 148 <t:tabcontrol 206 149 id="main" 207 150 subclass="content mastertabcontrol" 208 active="<%=tab%>" switch="switchTab" remember="false">151 active="<%=tab%>"> 209 152 <t:tab id="properties" title="Properties"> 210 153 <div> … … 218 161 /> 219 162 <base:icon 163 id="btnDeletePermanently" 220 164 image="deleted.png" 221 onclick="deleteItemPermanently()"222 165 tooltip="This item has been flagged for deletion. Click to delete it now." 223 166 enabled="<%=deletePermanentlyPermission %>" 224 167 visible="<%=isRemoved%>" 225 168 /> 226 <base:icon image="used.png" 227 onclick="showUsingItems()" 169 <base:icon 170 id="btnUsingItems" 171 image="used.png" 228 172 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 229 173 visible="<%=isRemoved && isUsed%>" /> … … 232 176 <tbl:toolbar subclass="bottomborder"> 233 177 <tbl:button 178 id="btnEdit" 234 179 disabled="<%=!writePermission%>" 235 180 image="edit.png" 236 onclick="editItem()"237 181 title="Edit…" 238 182 tooltip="<%=writePermission ? "Edit this raw bioassay" : "You do not have permission to edit this raw bioassay"%>" 239 183 /> 240 184 <tbl:button 185 id="btnDelete" 241 186 disabled="<%=!deletePermission%>" 242 187 image="delete.png" 243 onclick="deleteItem()"244 188 title="Delete" 245 189 visible="<%=!rawBioAssay.isRemoved()%>" … … 247 191 /> 248 192 <tbl:button 193 id="btnRestore" 249 194 disabled="<%=!writePermission%>" 250 195 image="restore.png" 251 onclick="restoreItem()"252 196 title="Restore" 253 197 visible="<%=rawBioAssay.isRemoved()%>" … … 255 199 /> 256 200 <tbl:button 201 id="btnShare" 257 202 disabled="<%=!sharePermission%>" 258 203 image="share.png" 259 onclick="shareItem()"260 204 title="Share…" 261 205 tooltip="<%=sharePermission ? "Share this raw bioassay to other user, groups and projects" : "You do not have permission to share this raw bioassay"%>" 262 206 /> 263 207 <tbl:button 208 id="btnSetOwner" 264 209 disabled="<%=!setOwnerPermission%>" 265 210 image="take_ownership.png" 266 onclick="setOwner()"267 211 title="Set owner…" 268 212 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 269 213 /> 270 214 <tbl:button 215 id="btnImport" 271 216 image="import.png" 272 onclick="runPlugin('ImportItem')"217 data-plugin-type="IMPORT" 273 218 title="Import…" 274 219 tooltip="Import data" … … 276 221 /> 277 222 <tbl:button 278 image="export.png" 279 onclick="runPlugin('ExportItem')" 223 id="btnExport" 224 image="export.png" 225 data-plugin-type="EXPORT" 280 226 title="Export…" 281 227 tooltip="Export data" … … 283 229 /> 284 230 <tbl:button 285 image="runplugin.png" 286 onclick="runPlugin('RunPlugin')" 231 id="btnRunPlugin" 232 image="runplugin.png" 233 data-plugin-type="OTHER" 287 234 title="Run plugin…" 288 235 tooltip="Run a plugin" … … 290 237 /> 291 238 <tbl:button 292 onclick="editSpotImages()"239 id="btnEditSpotImages" 293 240 image="runplugin.png" 294 241 title="Create spot images…" … … 299 246 <tbl:button 300 247 image="help.png" 301 onclick="<%="Main.openHelp('" + ID +"', 'rawbioassay.view.properties')"%>" 248 subclass="auto-init" 249 data-auto-init="help" 250 data-help-id="rawbioassay.view.properties" 302 251 title="Help…" 303 252 tooltip="Get help about this page" … … 592 541 593 542 <t:tab id="annotations" title="Annotations & parameters" 594 tooltip="View annotation values and protocol parameters" clazz="white" 595 activate="AnnotationsList.loadOnce()"> 543 tooltip="View annotation values and protocol parameters" clazz="white"> 596 544 <jsp:include page="../../common/annotations/list_frameset.jsp"> 597 545 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 603 551 <t:tab id="rawdata" title="Raw data" visible="<%=rawBioAssay.getNumDbSpots() > 0%>" /> 604 552 <t:tab id="overview" title="Overview" 605 tooltip="Display a tree overview of related items" 606 activate="Overview.loadOnce()"> 553 tooltip="Display a tree overview of related items"> 607 554 <jsp:include page="../../common/overview/overview.jsp"> 608 555 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 613 560 <t:tab id="history" title="Change history" 614 561 tooltip="Displays a log of all modifications made to this item" 615 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" 616 activate="History.loadOnce()"> 562 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 617 563 <jsp:include page="../../common/history/frameset.jsp"> 618 564 <jsp:param name="item_type" value="<%=itemType.name()%>" /> -
trunk/www/views/reporterlists/list_reporterlists.jsp
r6221 r6311 95 95 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 96 96 %> 97 <base:page title="<%=title==null ? "Reporter lists" : title%>" type="<%=mode.getPageType()%>" >98 <base:head scripts="table.js " styles="table.css,toolbar.css">97 <base:page title="<%=title==null ? "Reporter lists" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 98 <base:head scripts="table.js,~reporterlists.js" styles="table.css,toolbar.css"> 99 99 <ext:scripts context="<%=jspContext%>" /> 100 100 <ext:stylesheets context="<%=jspContext%>" /> 101 <script>102 var submitPage = 'index.jsp';103 var formId = 'reporterLists';104 function newItem()105 {106 var controller = Main.getController('REPORTERLIST');107 Table.submitToPopup(formId, 'NewItem', controller.width, controller.height);108 }109 function editItem(itemId)110 {111 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);112 }113 function viewItem(itemId)114 {115 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);116 }117 function itemOnClick(evt, itemId)118 {119 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);120 }121 function deleteItems()122 {123 var frm = document.forms[formId];124 if (Forms.numChecked(frm) == 0)125 {126 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');127 return;128 }129 frm.action = submitPage;130 frm.cmd.value = 'DeleteItems';131 frm.submit();132 }133 function restoreItems()134 {135 var frm = document.forms[formId];136 if (Forms.numChecked(frm) == 0)137 {138 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');139 return;140 }141 frm.action = submitPage;142 frm.cmd.value = 'RestoreItems';143 frm.submit();144 }145 function setOwner()146 {147 Table.setOwnerOfItems(formId);148 }149 function shareItems()150 {151 Table.shareItems(formId);152 }153 function configureColumns()154 {155 Table.configureColumns(formId);156 }157 function runPlugin(cmd)158 {159 Table.submitToPopup(formId, cmd, 750, 500);160 }161 function returnSelected()162 {163 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);164 window.close();165 }166 </script>167 101 </base:head> 168 102 … … 286 220 > 287 221 <tbl:button 222 id="btnNewItem" 288 223 disabled="<%=!createPermission%>" 289 224 image="new.png" 290 onclick="newItem()"291 225 title="New…" 292 226 tooltip="<%=createPermission ? "Create new reporter list" : "You do not have permission to create reporter lists"%>" 293 227 /> 294 228 <tbl:button 229 id="btnDeleteItems" 295 230 image="delete.png" 296 onclick="deleteItems()"297 231 title="Delete" 298 232 tooltip="Delete the selected items" 299 233 /> 300 234 <tbl:button 235 id="btnRestoreItems" 301 236 image="restore.png" 302 onclick="restoreItems()"303 237 title="Restore" 304 238 tooltip="Restore the selected (deleted) items" 305 239 /> 306 240 <tbl:button 241 id="btnShareItems" 307 242 image="share.png" 308 onclick="shareItems()"309 243 title="Share…" 310 244 tooltip="Share the selected items" 311 245 /> 312 246 <tbl:button 247 id="btnSetOwner" 313 248 image="take_ownership.png" 314 onclick="setOwner()"315 249 title="Set owner…" 316 250 tooltip="Change owner of the selected items" 317 251 /> 318 252 <tbl:button 253 id="btnColumns" 319 254 image="columns.png" 320 onclick="configureColumns()"321 255 title="Columns…" 322 256 tooltip="Show, hide and re-order columns" 323 257 /> 324 258 <tbl:button 259 id="btnImport" 260 data-plugin-type="IMPORT" 325 261 image="import.png" 326 onclick="runPlugin('ImportItems')"327 262 title="Import…" 328 263 tooltip="Import data" … … 330 265 /> 331 266 <tbl:button 267 id="btnExport" 268 data-plugin-type="EXPORT" 332 269 image="export.png" 333 onclick="runPlugin('ExportItems')"334 270 title="Export…" 335 271 tooltip="Export data" … … 337 273 /> 338 274 <tbl:button 275 id="btnRunPlugin" 276 data-plugin-type="OTHER" 339 277 image="runplugin.png" 340 onclick="runPlugin('RunListPlugin')"341 278 title="Run plugin…" 342 279 tooltip="Run a plugin" … … 456 393 visible="<%=item.isShared()%>" 457 394 /> </tbl:header> 458 <tbl:cell column="name"><div class="link" 459 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 395 <tbl:cell column="name"><div 396 class="link table-item" 397 data-item-id="<%=itemId%>" 398 data-no-edit="<%=writePermission ? 0 : 1 %>" 399 tabindex="0" 460 400 title="<%=tooltip%>"><%=name%></div></tbl:cell> 461 401 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 521 461 522 462 <base:buttongroup subclass="dialogbuttons"> 523 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />524 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />525 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />463 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 464 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 465 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 526 466 </base:buttongroup> 527 467 -
trunk/www/views/reporterlists/reporters/add_reporters_frameset.jsp
r6176 r6311 37 37 %> 38 38 39 <base:page type="popup" title=""> 40 <base:head> 41 <script> 42 function addSelected() 43 { 44 var selected = top['reporters'].Table.getSelected('reporters'); 45 if (selected.length == 0) 46 { 47 top['reporters'].Forms.showNotification('check.uncheck', 'Please select at least one reporter in the list', null, 'pointer-below'); 48 // Forms.showNotification(top['reporters'].document.getElementById('check.uncheck'), 'Please select at least one reporter in the list', null, 'pointer-below'); 49 return; 50 } 51 var frm = document.forms['addReporters']; 52 frm.which.value = 'selected'; 53 Forms.createHidden(frm, 'items', selected.join(',')); 54 frm.submit(); 55 } 56 function addCurrentPage() 57 { 58 var frm = document.forms['addReporters']; 59 frm.which.value = 'page'; 60 frm.submit(); 61 } 62 function addAll() 63 { 64 var frm = document.forms['addReporters']; 65 frm.which.value = 'all'; 66 frm.submit(); 67 } 68 </script> 69 </base:head> 70 39 <base:page type="popup" title="Add reporters" id="add-page"> 40 <base:head scripts="~reporters.js" /> 71 41 <base:body> 72 42 <h1>Select reporters</h1> … … 76 46 77 47 <base:buttongroup subclass="dialogbuttons topborder"> 78 <base:button title="Add selected" onclick="addSelected()" /> 79 <base:button title="Add current page" onclick="addCurrentPage()" /> 80 <base:button title="Add all" onclick="addAll()" /> 81 <base:button title="Close" onclick="window.top.close()" /> 48 <base:button 49 id="btnAddSelected" 50 title="Add selected" 51 /> 52 <base:button 53 id="btnAddCurrentPage" 54 title="Add current page" 55 /> 56 <base:button 57 id="btnAddAll" 58 title="Add all" 59 /> 60 <base:button 61 id="close" 62 title="Close" 63 /> 82 64 </base:buttongroup> 83 65 -
trunk/www/views/reporterlists/reporters/list_reporters.jsp
r6221 r6311 117 117 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 118 118 %> 119 <base:page title="<%=title%>" type="<%=mode.getPageType()%>" >120 <base:head scripts="table.js,tabcontrol .js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">119 <base:page title="<%=title%>" type="<%=mode.getPageType()%>" id="list-page"> 120 <base:head scripts="table.js,tabcontrol-2.js,~reporters.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> 121 121 <ext:scripts context="<%=jspContext%>" /> 122 122 <ext:stylesheets context="<%=jspContext%>" /> 123 <script>124 var submitPage = 'index.jsp';125 var formId = 'reporters';126 function editItem(itemId)127 {128 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);129 }130 function viewItem(itemId)131 {132 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);133 }134 function itemOnClick(evt, itemId)135 {136 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);137 }138 function addItems()139 {140 Main.openPopup('add_reporters_frameset.jsp?ID=<%=ID%>&reporterlist_id=<%=reporterListId%>', 'AddReporters', 1050, 700);141 }142 function deleteItems()143 {144 var frm = document.forms[formId];145 var numChecked = Forms.numChecked(frm);146 if (numChecked == 0)147 {148 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');149 return;150 }151 else152 {153 var rep = numChecked == 1 ? 'reporter' : 'reporters';154 if (!confirm('You are about to delete '+numChecked+' '+rep+' from the reporter list. This can\'t be undone. Continue?'))155 {156 return;157 }158 }159 frm.action = submitPage;160 frm.cmd.value = 'DeleteItems';161 frm.submit();162 }163 function configureColumns()164 {165 Table.configureColumns(formId);166 }167 function runPlugin(cmd)168 {169 Table.submitToPopup(formId, cmd, 750, 500);170 }171 function returnSelected()172 {173 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);174 window.close();175 }176 function switchTab(tabControlId, tabId)177 {178 if (tabId == 'properties')179 {180 location.href = '../index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=reporterListId%>&tab='+tabId;181 }182 else183 {184 TabControl.setActiveTab(tabControlId, tabId);185 }186 }187 </script>188 123 </base:head> 189 124 … … 197 132 id="main" 198 133 subclass="mastertabcontrol content" 199 active="reporters" switch="switchTab">134 active="reporters"> 200 135 <t:tab id="properties" title="Properties" /> 201 136 … … 361 296 > 362 297 <tbl:button 298 id="btnAddReporters" 363 299 disabled="<%=!writePermission%>" 364 300 image="add.png" 365 onclick="addItems()"366 301 title="Add…" 367 302 tooltip="<%=writePermission ? "Add reporters to this list" : "You do not have permission to add reporters" %>" 368 303 /> 369 304 <tbl:button 305 id="btnRemoveReporters" 370 306 disabled="<%=!deletePermission%>" 371 307 image="delete.png" 372 onclick="deleteItems()"373 308 title="Remove…" 374 309 tooltip="<%=deletePermission ? "Remove the selected items from this list" : "You do not have permission to remove reporters" %>" 375 310 /> 376 311 <tbl:button 312 id="btnColumns" 377 313 image="columns.png" 378 onclick="configureColumns()"379 314 title="Columns…" 380 315 tooltip="Show, hide and re-order columns" 381 316 /> 382 317 <tbl:button 318 id="btnImport" 319 data-plugin-type="IMPORT" 383 320 image="import.png" 384 onclick="runPlugin('ImportItems')"385 321 title="Import…" 386 322 tooltip="Import data" … … 388 324 /> 389 325 <tbl:button 326 id="btnExport" 327 data-plugin-type="EXPORT" 390 328 image="export.png" 391 onclick="runPlugin('ExportItems')"392 329 title="Export…" 393 330 tooltip="Export data" … … 395 332 /> 396 333 <tbl:button 334 id="btnRunPlugin" 335 data-plugin-type="OTHER" 397 336 image="runplugin.png" 398 onclick="runPlugin('RunListPlugin')"399 337 title="Run plugin…" 400 338 tooltip="Run a plugin" … … 496 434 visible="<%=mode.hasIcons()%>" 497 435 > </tbl:header> 498 <tbl:cell column="name"><div class="link" 499 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 436 <tbl:cell column="name"><div 437 class="link table-item" 438 data-item-id="<%=itemId%>" 439 data-no-edit="<%=writePermission ? 0 : 1 %>" 440 tabindex="0" 500 441 title="<%=tooltip%>"><%=name%></div></tbl:cell> 501 442 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 544 485 545 486 <base:buttongroup subclass="dialogbuttons"> 546 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />547 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />548 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />487 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 488 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 489 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 549 490 </base:buttongroup> 550 491 -
trunk/www/views/reporterlists/view_reporterlist.jsp
r6136 r6311 94 94 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 95 95 %> 96 <base:page title="<%=title%>" >97 <base:head scripts="tabcontrol .js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">96 <base:page title="<%=title%>" id="view-page"> 97 <base:head scripts="tabcontrol-2.js,~reporterlists.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css"> 98 98 <ext:scripts context="<%=jspContext%>" /> 99 99 <ext:stylesheets context="<%=jspContext%>" /> 100 <script>101 function editItem()102 {103 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);104 }105 function shareItem()106 {107 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'ShareReporterList', 600, 400);108 }109 function deleteItem()110 {111 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');112 }113 function restoreItem()114 {115 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');116 }117 function deleteItemPermanently()118 {119 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');120 }121 function itemDeleted()122 {123 Main.listItems('<%=ID%>', '<%=itemType.name()%>');124 }125 function showUsingItems()126 {127 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);128 }129 function setOwner()130 {131 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);132 }133 function runPlugin(cmd)134 {135 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);136 }137 function viewReporters()138 {139 location.href = 'reporters/index.jsp?ID=<%=ID%>&cmd=List&reporterlist_id=<%=itemId%>';140 }141 function switchTab(tabControlId, tabId)142 {143 if (tabId == 'reporters')144 {145 viewReporters();146 }147 else148 {149 TabControl.setActiveTab(tabControlId, tabId);150 }151 }152 function merge(mergeType)153 {154 Main.openPopup('merge.jsp?ID=<%=ID%>&item_id=<%=itemId%>&mergeType='+mergeType, 'Union', 600, 400);155 }156 </script>157 100 </base:head> 158 101 <base:body> … … 161 104 /><p:pathelement title="<%=HTML.encodeTags(reporterList.getName())%>" 162 105 /></p:path> 106 <div id="page-data" data-item-id="<%=itemId%>"></div> 163 107 164 108 <t:tabcontrol 165 109 id="main" 166 110 subclass="content mastertabcontrol" 167 active="properties" switch="switchTab">111 active="properties"> 168 112 <t:tab id="properties" title="Properties"> 169 113 <div> … … 177 121 /> 178 122 <base:icon 123 id="btnDeletePermanently" 179 124 image="deleted.png" 180 onclick="deleteItemPermanently()"181 125 tooltip="This item has been flagged for deletion. Click to delete it now." 182 126 enabled="<%=deletePermanentlyPermission %>" 183 127 visible="<%=isRemoved%>" 184 128 /> 185 <base:icon image="used.png" 186 onclick="showUsingItems()" 129 <base:icon 130 id="btnUsingItems" 131 image="used.png" 187 132 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 188 133 visible="<%=isRemoved && isUsed%>" /> … … 191 136 <tbl:toolbar subclass="bottomborder"> 192 137 <tbl:button 138 id="btnEdit" 193 139 disabled="<%=!writePermission%>" 194 140 image="edit.png" 195 onclick="editItem()"196 141 title="Edit…" 197 142 tooltip="<%=writePermission ? "Edit this reporter list" : "You do not have permission to edit this reporter list"%>" 198 143 /> 199 144 <tbl:button 145 id="btnDelete" 200 146 disabled="<%=!deletePermission%>" 201 147 image="delete.png" 202 onclick="deleteItem()"203 148 title="Delete" 204 149 visible="<%=!reporterList.isRemoved()%>" … … 206 151 /> 207 152 <tbl:button 153 id="btnRestore" 208 154 disabled="<%=!writePermission%>" 209 155 image="restore.png" 210 onclick="restoreItem()"211 156 title="Restore" 212 157 visible="<%=reporterList.isRemoved()%>" … … 214 159 /> 215 160 <tbl:button 161 id="btnShare" 216 162 disabled="<%=!sharePermission%>" 217 163 image="share.png" 218 onclick="shareItem()"219 164 title="Share…" 220 165 tooltip="<%=sharePermission ? "Share this reporter list to other user, groups and projects" : "You do not have permission to share this formula"%>" 221 166 /> 222 167 <tbl:button 168 id="btnSetOwner" 223 169 disabled="<%=!setOwnerPermission%>" 224 170 image="take_ownership.png" 225 onclick="setOwner()"226 171 title="Set owner…" 227 172 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 228 173 /> 229 174 <tbl:button 175 id="btnMergeUnion" 176 data-merge-type="union" 230 177 visible="<%=writePermission%>" 231 178 image="set_operations/union_small.png" 232 onclick="merge('union')"233 179 title="Union…" 234 180 tooltip="Add reporters from other lists to this list" 235 181 /> 236 182 <tbl:button 183 id="btnMergeIntersection" 184 data-merge-type="intersection" 237 185 visible="<%=writePermission%>" 238 186 image="set_operations/intersection_small.png" 239 onclick="merge('intersection')"240 187 title="Intersection…" 241 188 tooltip="Keep only reporters that are present in other lists" 242 189 /> 243 190 <tbl:button 191 id="btnMergeComplement" 192 data-merge-type="complement" 244 193 visible="<%=writePermission%>" 245 194 image="set_operations/complement_small.png" 246 onclick="merge('complement')"247 195 title="Complement…" 248 196 tooltip="Remove reporters in other lists from this list" 249 197 /> 250 198 <tbl:button 199 id="btnImport" 251 200 image="import.png" 252 onclick="runPlugin('ImportItem')"201 data-plugin-type="IMPORT" 253 202 title="Import…" 254 203 tooltip="Import data" … … 256 205 /> 257 206 <tbl:button 258 image="export.png" 259 onclick="runPlugin('ExportItem')" 207 id="btnExport" 208 image="export.png" 209 data-plugin-type="EXPORT" 260 210 title="Export…" 261 211 tooltip="Export data" … … 263 213 /> 264 214 <tbl:button 265 image="runplugin.png" 266 onclick="runPlugin('RunPlugin')" 215 id="btnRunPlugin" 216 image="runplugin.png" 217 data-plugin-type="OTHER" 267 218 title="Run plugin…" 268 219 tooltip="Run a plugin" … … 273 224 <tbl:button 274 225 image="help.png" 275 onclick="<%="Main.openHelp('" + ID +"', 'reporterlist.view.properties')"%>" 226 subclass="auto-init" 227 data-auto-init="help" 228 data-help-id="reporterlist.view.properties" 276 229 title="Help…" 277 230 tooltip="Get help about this page" -
trunk/www/views/reporters/list_reporters.jsp
r6221 r6311 111 111 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 112 112 %> 113 <base:page title="<%=title==null ? "Reporters" : title%>" type="<%=mode.getPageType()%>" >114 <base:head scripts="table.js " styles="table.css,toolbar.css">113 <base:page title="<%=title==null ? "Reporters" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 114 <base:head scripts="table.js,~reporters.js" styles="table.css,toolbar.css"> 115 115 <ext:scripts context="<%=jspContext%>" /> 116 116 <ext:stylesheets context="<%=jspContext%>" /> 117 <script>118 var submitPage = 'index.jsp';119 var formId = 'reporters';120 function newItem()121 {122 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);123 }124 function editItem(itemId)125 {126 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);127 }128 function viewItem(itemId)129 {130 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);131 }132 function itemOnClick(evt, itemId)133 {134 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);135 }136 function deleteItems()137 {138 var frm = document.forms[formId];139 var numChecked = Forms.numChecked(frm);140 if (numChecked == 0)141 {142 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');143 return;144 }145 else146 {147 var rep = numChecked == 1 ? 'reporter' : 'reporters';148 if (!confirm('You are about to delete '+numChecked+' '+rep+'. This can\'t be undone. Continue?'))149 {150 return;151 }152 }153 frm.action = submitPage;154 frm.cmd.value = 'DeleteItems';155 frm.submit();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 function newReporterList()171 {172 Table.submitToPopup(formId, 'CreateReporterList', 600, 400);173 }174 </script>175 117 </base:head> 176 118 … … 336 278 > 337 279 <tbl:button 280 id="btnNewItem" 338 281 disabled="<%=!createPermission%>" 339 282 image="new.png" 340 onclick="newItem()"341 283 title="New…" 342 284 tooltip="<%=createPermission ? "Create a new reporter" : "You do not have permission to create reporter"%>" 343 285 /> 344 286 <tbl:button 287 id="btnDeleteItems" 288 data-confirm="1" 345 289 disabled="<%=!deletePermission%>" 346 290 image="delete.png" 347 onclick="deleteItems()"348 291 title="Delete…" 349 292 tooltip="<%=deletePermission ? "Delete the selected items" : "You do not have permission to delete reporters" %>" 350 293 /> 351 294 <tbl:button 295 id="btnColumns" 352 296 image="columns.png" 353 onclick="configureColumns()"354 297 title="Columns…" 355 298 tooltip="Show, hide and re-order columns" 356 299 /> 357 300 <tbl:button 301 id="btnNewReporterList" 358 302 image="add.png" 359 onclick="newReporterList()"360 303 title="New reporter list…" 361 304 tooltip="Create a new reporter list from matching reporters" … … 363 306 /> 364 307 <tbl:button 308 id="btnImport" 309 data-plugin-type="IMPORT" 365 310 image="import.png" 366 onclick="runPlugin('ImportItems')"367 311 title="Import…" 368 312 tooltip="Import data" … … 370 314 /> 371 315 <tbl:button 316 id="btnExport" 317 data-plugin-type="EXPORT" 372 318 image="export.png" 373 onclick="runPlugin('ExportItems')"374 319 title="Export…" 375 320 tooltip="Export data" … … 377 322 /> 378 323 <tbl:button 324 id="btnRunPlugin" 325 data-plugin-type="OTHER" 379 326 image="runplugin.png" 380 onclick="runPlugin('RunListPlugin')"381 327 title="Run plugin…" 382 328 tooltip="Run a plugin" … … 477 423 visible="<%=mode.hasIcons()%>" 478 424 > </tbl:header> 479 <tbl:cell column="name"><div class="link" 480 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 425 <tbl:cell column="name"><div 426 class="link table-item" 427 data-item-id="<%=itemId%>" 428 data-no-edit="<%=writePermission ? 0 : 1 %>" 429 tabindex="0" 481 430 title="<%=tooltip%>"><%=name%></div></tbl:cell> 482 431 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 531 480 </div> 532 481 <base:buttongroup subclass="dialogbuttons"> 533 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />534 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />535 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />482 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 483 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 484 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 536 485 </base:buttongroup> 537 486 </base:body> -
trunk/www/views/reporters/view_reporter.jsp
r6176 r6311 90 90 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 91 91 %> 92 <base:page title="<%=title%>" >93 <base:head scripts="tabcontrol .js" styles="toolbar.css,headertabcontrol.css,path.css">92 <base:page title="<%=title%>" id="view-page"> 93 <base:head scripts="tabcontrol-2.js,~reporters.js" styles="toolbar.css,headertabcontrol.css,path.css"> 94 94 <ext:scripts context="<%=jspContext%>" /> 95 95 <ext:stylesheets context="<%=jspContext%>" /> 96 <script>97 function editItem()98 {99 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);100 }101 function deleteItem()102 {103 if (confirm('This can\'t be undone. Continue?'))104 {105 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');106 }107 }108 function runPlugin(cmd)109 {110 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);111 }112 </script>113 96 </base:head> 114 97 <base:body> … … 117 100 /><p:pathelement title="<%=HTML.encodeTags(reporter.getName())%>" 118 101 /></p:path> 102 <div id="page-data" data-item-id="<%=itemId%>"></div> 119 103 120 104 <t:tabcontrol … … 130 114 <tbl:toolbar subclass="bottomborder"> 131 115 <tbl:button 116 id="btnEdit" 132 117 disabled="<%=!writePermission%>" 133 118 image="edit.png" 134 onclick="editItem()"135 119 title="Edit…" 136 120 tooltip="<%=writePermission ? "Edit this reporter" : "You do not have permission to edit this reporter"%>" 137 121 /> 138 122 <tbl:button 123 id="btnDelete" 124 data-confirm="1" 139 125 disabled="<%=!deletePermission%>" 140 126 image="delete.png" 141 onclick="deleteItem()"142 127 title="Delete…" 143 128 tooltip="<%=deletePermission ? "Delete this reporter" : "You do not have permission to delete this reporter"%>" 144 129 /> 145 130 <tbl:button 131 id="btnImport" 146 132 image="import.png" 147 onclick="runPlugin('ImportItem')"133 data-plugin-type="IMPORT" 148 134 title="Import…" 149 135 tooltip="Import data" … … 151 137 /> 152 138 <tbl:button 153 image="export.png" 154 onclick="runPlugin('ExportItem')" 139 id="btnExport" 140 image="export.png" 141 data-plugin-type="EXPORT" 155 142 title="Export…" 156 143 tooltip="Export data" … … 158 145 /> 159 146 <tbl:button 160 image="runplugin.png" 161 onclick="runPlugin('RunPlugin')" 147 id="btnRunPlugin" 148 image="runplugin.png" 149 data-plugin-type="OTHER" 162 150 title="Run plugin…" 163 151 tooltip="Run a plugin" … … 166 154 <tbl:button 167 155 image="help.png" 168 onclick="<%="Main.openHelp('" + ID +"', 'reporter.view.properties')"%>" 156 subclass="auto-init" 157 data-auto-init="help" 158 data-help-id="reporter.view.properties" 169 159 title="Help…" 170 160 tooltip="Get help about this page" -
trunk/www/views/sessions/list_sessions.jsp
r6221 r6311 100 100 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 101 101 %> 102 <base:page title="<%=title==null ? "Sessions" : title%>" type="<%=mode.getPageType()%>" >103 <base:head scripts="table.js " styles="table.css,toolbar.css">102 <base:page title="<%=title==null ? "Sessions" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 103 <base:head scripts="table.js,~sessions.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 = 'sessions';109 function viewItem(itemId)110 {111 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);112 }113 function itemOnClick(evt, itemId)114 {115 viewItem(itemId);116 }117 function configureColumns()118 {119 Table.configureColumns(formId);120 }121 function runPlugin(cmd)122 {123 Table.submitToPopup(formId, cmd, 750, 500);124 }125 function returnSelected()126 {127 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);128 window.close();129 }130 </script>131 106 </base:head> 132 107 … … 243 218 > 244 219 <tbl:button 220 id="btnColumns" 245 221 image="columns.png" 246 onclick="configureColumns()"247 222 title="Columns…" 248 223 tooltip="Show, hide and re-order columns" 249 224 /> 250 225 <tbl:button 226 id="btnExport" 227 data-plugin-type="EXPORT" 251 228 image="export.png" 252 onclick="runPlugin('ExportItems')"253 229 title="Export…" 254 230 tooltip="Export data" … … 256 232 /> 257 233 <tbl:button 234 id="btnRunPlugin" 235 data-plugin-type="OTHER" 258 236 image="runplugin.png" 259 onclick="runPlugin('RunListPlugin')"260 237 title="Run plugin…" 261 238 tooltip="Run a plugin" … … 357 334 > </tbl:header> 358 335 <tbl:cell column="id"><%=item.getId()%></tbl:cell> 359 <tbl:cell column="loginTime"><div class="link" onclick="itemOnClick(event, <%=itemId%>)" 336 <tbl:cell column="loginTime"><div 337 class="link table-item" 338 data-item-id="<%=itemId%>" 339 data-no-edit="1" 340 tabindex="0" 360 341 title="<%=tooltip%>"><%=dateTimeFormatter.format(item.getLoginTime())%></div></tbl:cell> 361 342 <tbl:cell column="logoutTime" value="<%=item.getLogoutTime()%>" /> … … 402 383 403 384 <base:buttongroup subclass="dialogbuttons"> 404 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />405 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />406 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />385 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 386 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 387 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 407 388 </base:buttongroup> 408 389 -
trunk/www/views/sessions/view_session.jsp
r5915 r6311 89 89 Formatter<Date> dateTimeFormatter = FormatterFactory.getDateTimeFormatter(sc); 90 90 %> 91 <base:page type="popup" title="<%=title%>"> 92 <base:head> 93 </base:head> 91 <base:page type="popup" title="<%=title%>" id="view-page"> 92 <base:head scripts="~sessions.js" /> 94 93 <base:body> 95 94 96 95 <h1><%=title%> <base:help helpid="session.view" /></h1> 96 <div id="page-data" data-item-id="<%=itemId%>"></div> 97 97 98 <div class="content"> 98 99 <table class="fullform bottomborder outlined"> … … 128 129 </div> 129 130 <base:buttongroup subclass="dialogbuttons"> 130 <base:button onclick="window.close()" title="Close" />131 <base:button id="close" title="Close" /> 131 132 </base:buttongroup> 132 133 -
trunk/www/views/trashcan/index.jsp
r6218 r6311 119 119 sc.setSessionSetting("progress.trashcan", progress); 120 120 int numRemoved = Trashcan.delete(sc, items, false, progress); 121 121 122 122 if (numTotal != numRemoved) 123 123 { -
trunk/www/views/trashcan/list_trash.jsp
r6221 r6311 104 104 "net.sf.basedb.clients.web.listcolumn.trashcan"); 105 105 %> 106 <base:page title="Trashcan" >107 <base:head scripts="table.js " styles="table.css,toolbar.css">106 <base:page title="Trashcan" id="list-page"> 107 <base:head scripts="table.js,~trash.js" styles="table.css,toolbar.css"> 108 108 <ext:scripts context="<%=jspContext%>" /> 109 109 <ext:stylesheets context="<%=jspContext%>" /> 110 <script>111 var submitPage = 'index.jsp';112 var formId = 'trashcan';113 function viewItem(itemId)114 {115 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id='+itemId, 'ViewJob', 750, 500);116 }117 function itemOnClick(evt, itemId)118 {119 viewItem(itemId);120 }121 function deleteAllItems()122 {123 if (!confirm('You are about to PERMANENTLY DELETE all item.\n This can\'t be undone. Continue?'))124 {125 return;126 }127 Main.openPopup('../../common/progress_reporter.jsp?ID=<%=ID%>&progress=trashcan&title=Empty trashcan', 'Progress', 400, 200);128 var frm = document.forms[formId];129 frm.action = submitPage;130 frm.cmd.value = 'DeleteAllPermanently';131 frm.submit();132 }133 function deleteItems()134 {135 var frm = document.forms[formId];136 var numChecked = Forms.numChecked(frm, /item:/);137 if (numChecked == 0)138 {139 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');140 return;141 }142 else143 {144 var items = numChecked == 1 ? 'item' : 'items';145 if (!confirm('You are about to PERMANENTLY DELETE '+numChecked+' '+items+'.\n This can\'t be undone. Continue?'))146 {147 return;148 }149 }150 Main.openPopup('../../common/progress_reporter.jsp?ID=<%=ID%>&progress=trashcan&title=Delete items', 'Progress', 400, 200);151 frm.action = submitPage;152 frm.cmd.value = 'DeleteItemsPermanently';153 frm.submit();154 }155 function restoreItems()156 {157 var frm = document.forms[formId];158 if (Forms.numChecked(frm, /item:/) == 0)159 {160 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');161 return;162 }163 frm.action = submitPage;164 frm.cmd.value = 'RestoreItems';165 frm.submit();166 }167 function configureColumns()168 {169 Table.configureColumns(formId);170 }171 function showUsingItems(itemType, itemId)172 {173 var url = 'index.jsp?ID=<%=ID%>&cmd=ViewUsingItems&item_type='+itemType+'&item_id='+itemId;174 location.href = url;175 }176 </script>177 110 </base:head> 178 111 … … 222 155 <tbl:toolbar subclass="bottomborder"> 223 156 <tbl:button 157 id="btnDeleteAllItems" 224 158 image="deleteall.png" 225 onclick="deleteAllItems()"226 159 title="Empty trash…" 227 160 tooltip="Delete all items from the trashcan" … … 229 162 /> 230 163 <tbl:button 164 id="btnDeleteItems" 231 165 image="delete_permanently.png" 232 onclick="deleteItems()"233 166 title="Delete permanently…" 234 167 tooltip="Delete the selected items permanently" … … 236 169 /> 237 170 <tbl:button 171 id="btnRestoreItems" 238 172 image="restore.png" 239 onclick="restoreItems()"240 173 title="Restore" 241 174 tooltip="Restore the selected items" … … 243 176 /> 244 177 <tbl:button 178 id="btnColumns" 245 179 image="columns.png" 246 onclick="configureColumns()"247 180 title="Columns…" 248 181 tooltip="Show, hide and re-order columns" … … 343 276 clazz="icons" 344 277 ><base:icon 345 image="used.png" 278 subclass="link auto-init" 279 data-auto-init="show-using-items" 280 data-item-type="<%=item.getType().name() %>" 281 data-item-id="<%=itemId %>" 282 image="used.png" 346 283 tooltip="This item is used by other items and cannot be deleted" 347 284 visible="<%=isUsed%>" 348 onclick="<%="showUsingItems('" + item.getType().name() + "', " + itemId + ")"%>"349 285 /> </tbl:header> 350 286 <tbl:cell column="type"><%=item.getType()%></tbl:cell> -
trunk/www/views/trashcan/view_item.jsp
r6221 r6311 119 119 "net.sf.basedb.clients.web.toolbar.item.trashcan"); 120 120 %> 121 <base:page title="<%="Trashcan - " + HTML.encodeTags(name) %>" >122 <base:head scripts="tabcontrol .js,table.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">121 <base:page title="<%="Trashcan - " + HTML.encodeTags(name) %>" id="view-page"> 122 <base:head scripts="tabcontrol-2.js,table.js,~trash.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> 123 123 <ext:scripts context="<%=jspContext%>" /> 124 124 <ext:stylesheets context="<%=jspContext%>" /> 125 <script>126 var submitPage = 'index.jsp';127 var formId = 'usingItems';128 function editItem()129 {130 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);131 }132 function shareItem()133 {134 var controller = Main.getController('<%=itemType.name()%>');135 var url = getRoot() + controller.url + '?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>';136 Main.openPopup(url, 'ShareItem', 600, 400);137 }138 function restoreItem()139 {140 var controller = Main.getController('<%=itemType.name()%>');141 url = 'index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_type=<%=itemType.name()%>&item_id=<%=itemId%>';142 url += '&itemsIndexPage=' + getRoot() + controller.url;143 location.replace(url);144 }145 function deleteItem()146 {147 if (!confirm('You are about to PERMANENTLY DELETE this item.\n This can\'t be undone. Continue?'))148 {149 return;150 }151 var url = 'index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_type=<%=itemType.name()%>&item_id=<%=itemId%>';152 location.replace(url);153 }154 function deleteItems()155 {156 var frm = document.forms[formId];157 var numChecked = Forms.numChecked(frm, /item:/);158 if (numChecked == 0)159 {160 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');161 return;162 }163 frm.action = submitPage;164 frm.cmd.value = 'DeleteItems';165 frm.submit();166 }167 function restoreItems()168 {169 var frm = document.forms[formId];170 var numChecked = Forms.numChecked(frm, /item:/);171 if (numChecked == 0)172 {173 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');174 return;175 }176 frm.action = submitPage;177 frm.cmd.value = 'RestoreItems';178 frm.submit();179 }180 function showUsingItems(itemType, itemId)181 {182 var url = 'index.jsp?ID=<%=ID%>&cmd=ViewUsingItems&item_type='+itemType+'&item_id='+itemId;183 location.href = url;184 }185 186 </script>187 125 </base:head> 188 126 <base:body> … … 190 128 /><p:pathelement title="<%=itemType.toString() + ": " + HTML.encodeTags(name)%>" 191 129 /></p:path> 130 <div id="page-data" data-item-id="<%=itemId%>" data-item-type="<%=itemType.name()%>"></div> 192 131 193 132 <t:tabcontrol id="main" subclass="content mastertabcontrol"> … … 207 146 visible="<%=isRemoved%>" 208 147 /> 209 <base:icon image="used.png" 210 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 148 <base:icon 149 image="used.png" 150 tooltip="This item is used by other items and can't be permanently deleted." 211 151 visible="<%=isUsed%>" /> 212 152 </th> 213 153 <td style="padding: 0px;"> 214 154 <tbl:toolbar subclass="bottomborder"> 215 216 155 <tbl:button 156 id="btnEdit" 217 157 disabled="<%=!writePermission%>" 218 158 image="edit.png" 219 onclick="editItem()"220 159 title="Edit…" 221 160 tooltip="<%=writePermission ? "Edit this item" : "You do not have permission to edit this item"%>" 222 161 /> 223 162 <tbl:button 163 id="btnDeleteItem" 224 164 disabled="<%=!deletePermission%>" 225 165 image="delete_permanently.png" 226 onclick="deleteItem()"227 166 title="Delete permanently…" 228 167 visible="<%=!isUsed%>" … … 230 169 /> 231 170 <tbl:button 171 id="btnRestore" 232 172 disabled="<%=!writePermission%>" 233 173 image="restore.png" 234 onclick="restoreItem()"235 174 title="Restore" 236 175 visible="<%=isRemoved%>" 237 176 tooltip="<%=writePermission ? "Restore this item" : "You do not have permission to restore this item"%>" 238 177 /> 239 <tbl:button 178 <tbl:button 179 id="btnShare" 240 180 disabled="<%=!sharePermission%>" 241 181 image="share.png" 242 onclick="shareItem()"243 182 title="Share…" 244 183 visible="<%=shareable != null%>" … … 249 188 <tbl:button 250 189 image="help.png" 251 onclick="<%="Main.openHelp('" + ID +"', 'trash.view.properties')"%>" 190 subclass="auto-init" 191 data-auto-init="help" 192 data-help-id="trash.view.properties" 252 193 title="Help…" 253 194 tooltip="Get help about this page" … … 282 223 <tbl:toolbar subclass="leftborder topborder rightborder"> 283 224 <tbl:button 225 id="btnDeleteItems" 284 226 image="delete.png" 285 onclick="deleteItems()"286 227 title="Delete" 287 228 tooltip="Mark the selected items for deletion" 288 229 /> 289 230 <tbl:button 290 i mage="restore.png"291 onclick="restoreItems()"231 id="btnRestoreItems" 232 image="restore.png" 292 233 title="Restore" 293 234 tooltip="Restore the selected item" … … 297 238 id="usingItems" 298 239 columns="all" 240 action="index.jsp" 241 sc="<%=sc%>" 299 242 > 300 243 <tbl:hidden … … 415 358 /> 416 359 <base:icon 360 subclass="link auto-init" 361 data-auto-init="show-using-items" 362 data-item-type="<%=proxy.getType().name() %>" 363 data-item-id="<%=proxy.getId() %>" 417 364 image="used.png" 418 365 tooltip="This item is used by other items" 419 366 visible="<%=usedByIsRemoved && usedByIsUsed%>" 420 onclick="<%="showUsingItems('" + usedBy.getType().name() + "', " + usedBy.getId() + ")"%>"421 367 /> </tbl:header> 422 368 <tbl:cell column="name"><%=Base.getLink(ID, HTML.encodeTags(usedByName), proxy.getType(), proxy.getId(), writePermissionOnUsedBy)%></tbl:cell>
Note: See TracChangeset
for help on using the changeset viewer.