Changeset 6307
- Timestamp:
- Aug 15, 2013, 9:54:08 AM (9 years ago)
- Location:
- trunk/www
- Files:
-
- 10 added
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/biomaterials/extracts/list_extracts.jsp
r6268 r6307 173 173 <ext:scripts context="<%=jspContext%>" /> 174 174 <ext:stylesheets context="<%=jspContext%>" /> 175 <script>176 /*177 var submitPage = 'index.jsp';178 var formId = 'extracts';179 function newItem()180 {181 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);182 }183 function newPooledItem()184 {185 Table.poolItems(submitPage, '<%=ID%>', formId, '<%=itemType.name()%>', 'NewPooledItem');186 }187 function newPhysicalBioAssay()188 {189 Table.poolItems(submitPage, '<%=ID%>', formId, '<%=itemType.name()%>', 'NewPhysicalBioAssay');190 }191 function newExtract(extractId)192 {193 Main.viewOrEditItem('<%=ID%>', 'EXTRACT', 0, true, '&extract_id='+extractId);194 }195 function newRawBioAssay(extractId)196 {197 Main.viewOrEditItem('<%=ID%>', 'RAWBIOASSAY', 0, true, '&extract_id='+extractId);198 }199 function editItem(itemId)200 {201 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);202 }203 function viewItem(itemId)204 {205 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);206 }207 function itemOnClick(evt, itemId)208 {209 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);210 }211 function deleteItems()212 {213 var frm = document.forms[formId];214 if (Forms.numChecked(frm) == 0)215 {216 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');217 return;218 }219 frm.action = submitPage;220 frm.cmd.value = 'DeleteItems';221 frm.submit();222 }223 function restoreItems()224 {225 var frm = document.forms[formId];226 if (Forms.numChecked(frm) == 0)227 {228 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');229 return;230 }231 frm.action = submitPage;232 frm.cmd.value = 'RestoreItems';233 frm.submit();234 }235 function setOwner()236 {237 Table.setOwnerOfItems(formId);238 }239 function shareItems()240 {241 Table.shareItems(formId);242 }243 function configureColumns()244 {245 Table.configureColumns(formId);246 }247 function runPlugin(cmd)248 {249 Table.submitToPopup(formId, cmd, 750, 500);250 }251 function returnSelected()252 {253 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);254 window.close();255 }256 function newBioMaterialList()257 {258 var controller = Main.getController('BIOMATERIALLIST');259 Table.submitToPopup(formId, 'CreateBioMaterialList', controller.width, controller.height);260 }261 function placeOnPlate()262 {263 Table.submitToPopup(formId, 'PlaceOnPlate', 900, 600);264 }265 */266 </script>267 175 </base:head> 268 176 -
trunk/www/common/history/frameset.jsp
r6244 r6307 46 46 ></div> 47 47 <script type="text/javascript" charset="UTF-8" src="<%=root%>/common/history/history.js"></script> 48 <div class="absolutefull"><iframe name="history " id="idHistory"48 <div class="absolutefull"><iframe name="history-frame" id="idHistory" 49 49 src="<%=root%>/common/history/wait.jsp" 50 50 class="absolutefull" style="width: 100%; height: 100%;"></iframe></div> -
trunk/www/common/history/history.js
r6244 r6307 60 60 url += '&source_type='+Data.get('history-data', 'source-type'); 61 61 url += '&source_id='+Data.get('history-data', 'source-id'); 62 frames['history '].location.href = url;62 frames['history-frame'].location.href = url; 63 63 loaded = true; 64 64 } -
trunk/www/include/scripts/main-2.js
r6305 r6307 784 784 that is given by the 'data-item-type' and 'data-item-id' 785 785 attributes to be deleted from the database. Usually attached 786 to an 'Trashcan' icon on a single-item page. The current page 787 is automatically reloaded with the list page instead. 786 to an 'Trashcan' icon on a single-item page. Specify a target 787 element id in 'data-notify' attribute to send a 'base-notify' 788 message after the item has been deleted, otherwise the current 789 page is automatically reloaded with the list page instead. 788 790 */ 789 791 buttons.deleteItemPermanently = function(event) … … 793 795 var itemId = Data.int(target, 'item-id'); 794 796 var extraUrl = Data.get(target, 'extra-url'); 795 Items.deleteItemPermanently(itemType, itemId, true, extraUrl); 797 var notify = Data.get(target, 'notify'); 798 Items.deleteItemPermanently(itemType, itemId, true, notify, extraUrl); 796 799 } 797 800 … … 848 851 var target = event.currentTarget; 849 852 var tableId = Data.get(target, 'table-id'); 850 Table.setOwnerOfItems(tableId); 853 var regexp = Data.get(target, 'regexp'); 854 Table.setOwnerOfItems(tableId, regexp); 851 855 } 852 856 … … 1305 1309 The current page is automatically changed to the list page. 1306 1310 */ 1307 items.deleteItemPermanently = function(itemType, itemId, ask, extraUrl)1311 items.deleteItemPermanently = function(itemType, itemId, ask, notify, extraUrl) 1308 1312 { 1309 1313 if (ask) … … 1312 1316 } 1313 1317 1314 // Create temporary div to receive redirect 1315 // notification from popup window 1316 var notifyDiv = document.createElement('div'); 1317 notifyDiv.id = 'n'+(new Date()).getTime(); 1318 Events.addEventHandler(notifyDiv, 'base-notify', 1319 function() 1320 { 1321 Items.list(itemType, extraUrl); 1322 } 1323 ); 1324 document.body.appendChild(notifyDiv); 1318 if (!notify) 1319 { 1320 // Create temporary div to receive redirect 1321 // notification from popup window 1322 var notifyDiv = document.createElement('div'); 1323 notifyDiv.id = 'n'+(new Date()).getTime(); 1324 Events.addEventHandler(notifyDiv, 'base-notify', 1325 function() 1326 { 1327 Items.list(itemType, extraUrl); 1328 } 1329 ); 1330 document.body.appendChild(notifyDiv); 1331 notify = notifyDiv.id; 1332 } 1325 1333 1326 1334 var url = App.getRoot(); … … 1329 1337 url += '&cmd=DeleteItem&popup=1'; 1330 1338 url += '&item_type='+itemType+'&item_id=' + itemId; 1331 url += '¬ify='+notify Div.id;1339 url += '¬ify='+notify; 1332 1340 Dialogs.openPopup(url, 'Delete'+itemType, 300, 200); 1333 1341 } -
trunk/www/lims/arraybatches/list_batches.jsp
r6221 r6307 119 119 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 120 120 %> 121 <base:page title="<%=title==null ? "Array batches" : title%>" type="<%=mode.getPageType()%>" >122 <base:head scripts="table.js " styles="table.css,toolbar.css">121 <base:page title="<%=title==null ? "Array batches" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 122 <base:head scripts="table.js,~batches.js" styles="table.css,toolbar.css"> 123 123 <ext:scripts context="<%=jspContext%>" /> 124 124 <ext:stylesheets context="<%=jspContext%>" /> 125 <script>126 var submitPage = 'index.jsp';127 var formId = 'batches';128 function newItem()129 {130 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);131 }132 function editItem(itemId)133 {134 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);135 }136 function viewItem(itemId)137 {138 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);139 }140 function itemOnClick(evt, itemId)141 {142 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);143 }144 function deleteItems()145 {146 var frm = document.forms[formId];147 if (Forms.numChecked(frm) == 0)148 {149 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');150 return;151 }152 frm.action = submitPage;153 frm.cmd.value = 'DeleteItems';154 frm.submit();155 }156 function restoreItems()157 {158 var frm = document.forms[formId];159 if (Forms.numChecked(frm) == 0)160 {161 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');162 return;163 }164 frm.action = submitPage;165 frm.cmd.value = 'RestoreItems';166 frm.submit();167 }168 function setOwner()169 {170 Table.setOwnerOfItems(formId);171 }172 function shareItems()173 {174 Table.shareItems(formId);175 }176 function configureColumns()177 {178 Table.configureColumns(formId);179 }180 function runPlugin(cmd)181 {182 Table.submitToPopup(formId, cmd, 750, 500);183 }184 function returnSelected()185 {186 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);187 window.close();188 }189 function newSlide(batchId)190 {191 Main.viewOrEditItem('<%=ID%>', 'ARRAYSLIDE', 0, true, '&arraybatch_id='+batchId);192 }193 function multipleNewSlides(batchId)194 {195 Main.openPopup('../arrayslides/index.jsp?ID=<%=ID%>&cmd=NewItems&arraybatch_id='+batchId, 'NewArraySlides', 750, 500);196 }197 </script>198 125 </base:head> 199 126 … … 357 284 > 358 285 <tbl:button 286 id="btnNewItem" 359 287 disabled="<%=!createPermission%>" 360 288 image="new.png" 361 onclick="newItem()"362 289 title="New…" 363 290 tooltip="<%=createPermission ? "Create new array batche" : "You do not have permission to create array batches"%>" 364 291 /> 365 292 <tbl:button 293 id="btnDeleteItems" 366 294 image="delete.png" 367 onclick="deleteItems()"368 295 title="Delete" 369 296 tooltip="Delete the selected items" 370 297 /> 371 298 <tbl:button 299 id="btnRestoreItems" 372 300 image="restore.png" 373 onclick="restoreItems()"374 301 title="Restore" 375 302 tooltip="Restore the selected (deleted) items" 376 303 /> 377 304 <tbl:button 305 id="btnShareItems" 378 306 image="share.png" 379 onclick="shareItems()"380 307 title="Share…" 381 308 tooltip="Share the selected items" 382 309 /> 383 310 <tbl:button 311 id="btnSetOwner" 384 312 image="take_ownership.png" 385 onclick="setOwner()"386 313 title="Set owner…" 387 314 tooltip="Change owner of the selected items" 388 315 /> 389 316 <tbl:button 317 id="btnColumns" 390 318 image="columns.png" 391 onclick="configureColumns()"392 319 title="Columns…" 393 320 tooltip="Show, hide and re-order columns" 394 321 /> 395 322 <tbl:button 323 id="btnImport" 324 data-plugin-type="IMPORT" 396 325 image="import.png" 397 onclick="runPlugin('ImportItems')"398 326 title="Import…" 399 327 tooltip="Import data" … … 401 329 /> 402 330 <tbl:button 331 id="btnExport" 332 data-plugin-type="EXPORT" 403 333 image="export.png" 404 onclick="runPlugin('ExportItems')"405 334 title="Export…" 406 335 tooltip="Export data" … … 408 337 /> 409 338 <tbl:button 339 id="btnRunPlugin" 340 data-plugin-type="OTHER" 410 341 image="runplugin.png" 411 onclick="runPlugin('RunListPlugin')"412 342 title="Run plugin…" 413 343 tooltip="Run a plugin" … … 528 458 visible="<%=item.isShared()%>" 529 459 /> </tbl:header> 530 <tbl:cell column="name"><div class="link" 531 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 460 <tbl:cell column="name"><div 461 class="link table-item" 462 data-item-id="<%=itemId%>" 463 data-no-edit="<%=writePermission ? 0 : 1 %>" 464 tabindex="0" 532 465 title="<%=tooltip%>"><%=name%></div></tbl:cell> 533 466 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 572 505 <base:icon 573 506 image="add.png" 574 onclick="<%="newSlide("+itemId+")"%>" 507 subclass="link auto-init" 508 data-auto-init="new-slide" 509 data-item-id="<%=itemId %>" 575 510 tooltip="Create new slide" 576 511 visible="<%=mode.hasEditLink() && createSlidePermission && usePermission %>" … … 578 513 <base:icon 579 514 image="new_wizard.png" 580 onclick="<%="multipleNewSlides("+itemId+")"%>" 515 subclass="link auto-init" 516 data-auto-init="new-slide-wizard" 517 data-item-id="<%=itemId %>" 581 518 tooltip="Create multiple new slides using a wizard" 582 519 visible="<%=mode.hasEditLink() && createSlidePermission && usePermission %>" … … 657 594 658 595 <base:buttongroup subclass="dialogbuttons"> 659 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />660 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />661 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />596 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 597 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 598 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 662 599 </base:buttongroup> 663 600 -
trunk/www/lims/arraybatches/view_batch.jsp
r6255 r6307 107 107 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 108 108 %> 109 <base:page title="<%=title%>" >110 <base:head scripts="tabcontrol .js,table.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">109 <base:page title="<%=title%>" id="view-page"> 110 <base:head scripts="tabcontrol-2.js,table.js,~batches.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css"> 111 111 <ext:scripts context="<%=jspContext%>" /> 112 112 <ext:stylesheets context="<%=jspContext%>" /> 113 <script>114 function editItem()115 {116 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);117 }118 function shareItem()119 {120 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'ShareArrayBatch', 600, 400);121 }122 function deleteItem()123 {124 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');125 }126 function restoreItem()127 {128 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');129 }130 function deleteItemPermanently()131 {132 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');133 }134 function itemDeleted()135 {136 Main.listItems('<%=ID%>', '<%=itemType.name()%>');137 }138 function showUsingItems()139 {140 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);141 }142 function setOwner()143 {144 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);145 }146 function runPlugin(cmd)147 {148 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);149 }150 function newSlide()151 {152 Main.viewOrEditItem('<%=ID%>', 'ARRAYSLIDE', 0, true, '&arraybatch_id=<%=itemId%>');153 }154 function multipleNewSlides()155 {156 Main.openPopup('../arrayslides/index.jsp?ID=<%=ID%>&cmd=NewItems&arraybatch_id=<%=itemId%>', 'NewArraySlides', 750, 500);157 }158 </script>159 113 </base:head> 160 114 <base:body> … … 163 117 /><p:pathelement title="<%=HTML.encodeTags(batch.getName())%>" 164 118 /></p:path> 119 <div id="page-data" data-item-id="<%=itemId%>"></div> 165 120 166 121 <t:tabcontrol … … 179 134 /> 180 135 <base:icon 136 id="btnDeletePermanently" 181 137 image="deleted.png" 182 onclick="deleteItemPermanently()"183 138 tooltip="This item has been flagged for deletion. Click to delete it now." 184 139 enabled="<%=deletePermanentlyPermission %>" 185 140 visible="<%=isRemoved%>" 186 141 /> 187 <base:icon image="used.png" 188 onclick="showUsingItems()" 142 <base:icon 143 id="btnUsingItems" 144 image="used.png" 189 145 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 190 146 visible="<%=isRemoved && isUsed%>" /> … … 193 149 <tbl:toolbar subclass="bottomborder"> 194 150 <tbl:button 151 id="btnEdit" 195 152 disabled="<%=!writePermission%>" 196 153 image="edit.png" 197 onclick="editItem()"198 154 title="Edit…" 199 155 tooltip="<%=writePermission ? "Edit this array batch" : "You do not have permission to edit this array batch"%>" 200 156 /> 201 157 <tbl:button 158 id="btnDelete" 202 159 disabled="<%=!deletePermission%>" 203 160 image="delete.png" 204 onclick="deleteItem()"205 161 title="Delete" 206 162 visible="<%=!batch.isRemoved()%>" … … 208 164 /> 209 165 <tbl:button 166 id="btnRestore" 210 167 disabled="<%=!writePermission%>" 211 168 image="restore.png" 212 onclick="restoreItem()"213 169 title="Restore" 214 170 visible="<%=batch.isRemoved()%>" … … 216 172 /> 217 173 <tbl:button 174 id="btnNewSlide" 218 175 image="add.png" 219 onclick="newSlide()"220 176 title="New slide…" 221 177 tooltip="Create a new array slide in this batch" … … 223 179 /> 224 180 <tbl:button 181 id="btnNewSlideWizard" 225 182 image="new_wizard.png" 226 onclick="multipleNewSlides()"227 183 title="Create slides…" 228 184 tooltip="Create multiple new array slides in this batch using a wizard" … … 230 186 /> 231 187 <tbl:button 188 id="btnShare" 232 189 disabled="<%=!sharePermission%>" 233 190 image="share.png" 234 onclick="shareItem()"235 191 title="Share…" 236 192 tooltip="<%=sharePermission ? "Share this array batch to other user, groups and projects" : "You do not have permission to share this array batch"%>" 237 193 /> 238 194 <tbl:button 195 id="btnSetOwner" 239 196 disabled="<%=!setOwnerPermission%>" 240 197 image="take_ownership.png" 241 onclick="setOwner()"242 198 title="Set owner…" 243 199 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 244 200 /> 245 201 <tbl:button 202 id="btnImport" 246 203 image="import.png" 247 onclick="runPlugin('ImportItem')"204 data-plugin-type="IMPORT" 248 205 title="Import…" 249 206 tooltip="Import data" … … 251 208 /> 252 209 <tbl:button 253 image="export.png" 254 onclick="runPlugin('ExportItem')" 210 id="btnExport" 211 image="export.png" 212 data-plugin-type="EXPORT" 255 213 title="Export…" 256 214 tooltip="Export data" … … 258 216 /> 259 217 <tbl:button 260 image="runplugin.png" 261 onclick="runPlugin('RunPlugin')" 218 id="btnRunPlugin" 219 image="runplugin.png" 220 data-plugin-type="OTHER" 262 221 title="Run plugin…" 263 222 tooltip="Run a plugin" … … 268 227 <tbl:button 269 228 image="help.png" 270 onclick="<%="Main.openHelp('" + ID +"', 'arraybatch.view.properties')"%>" 229 subclass="auto-init" 230 data-auto-init="help" 231 data-help-id="arraybatch.view.properties" 271 232 title="Help…" 272 233 tooltip="Get help about this page" … … 394 355 395 356 <t:tab id="annotations" title="Annotations & parameters" 396 tooltip="View annotation values and protocol parameters" clazz="white" 397 activate="AnnotationsList.loadOnce()"> 357 tooltip="View annotation values and protocol parameters" clazz="white"> 398 358 <jsp:include page="../../common/annotations/list_frameset.jsp"> 399 359 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 404 364 405 365 <t:tab id="overview" title="Overview" 406 tooltip="Display a tree overview of related items" 407 activate="Overview.loadOnce()"> 366 tooltip="Display a tree overview of related items"> 408 367 <jsp:include page="../../common/overview/overview.jsp"> 409 368 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 414 373 <t:tab id="history" title="Change history" 415 374 tooltip="Displays a log of all modifications made to this item" 416 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" 417 activate="History.loadOnce()"> 375 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 418 376 <jsp:include page="../../common/history/frameset.jsp"> 419 377 <jsp:param name="item_type" value="<%=itemType.name()%>" /> -
trunk/www/lims/arraydesigns/features/list_features.jsp
r6221 r6307 143 143 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 144 144 %> 145 <base:page title="<%=title%>" >146 <base:head scripts="table.js,tabcontrol .js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">145 <base:page title="<%=title%>" id="list-page"> 146 <base:head scripts="table.js,tabcontrol-2.js,~features.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> 147 147 <ext:scripts context="<%=jspContext%>" /> 148 148 <ext:stylesheets context="<%=jspContext%>" /> 149 <script>150 var submitPage = 'index.jsp';151 var formId = 'features';152 function viewItem(itemId)153 {154 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false, '&arraydesign_id=<%=arrayDesignId%>');155 }156 function itemOnClick(evt, itemId)157 {158 viewItem(itemId);159 }160 function configureColumns()161 {162 Table.configureColumns(formId);163 }164 function runPlugin(cmd)165 {166 Table.submitToPopup(formId, cmd, 750, 500);167 }168 function returnSelected()169 {170 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);171 window.close();172 }173 function switchTab(tabControlId, tabId)174 {175 if (tabId == 'properties' || tabId == 'annotations' || tabId == 'overview' || tabId == 'history')176 {177 location.href = '../index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=arrayDesignId%>&tab='+tabId;178 }179 else180 {181 TabControl.setActiveTab(tabControlId, tabId);182 }183 }184 function newReporterList()185 {186 Table.submitToPopup(formId, 'CreateReporterList', 600, 400);187 }188 </script>189 149 </base:head> 190 150 … … 198 158 id="main" 199 159 subclass="content mastertabcontrol" 200 active="images" switch="switchTab">160 active="images"> 201 161 <t:tab id="properties" title="Properties" /> 202 162 <t:tab id="annotations" title="Annotations" /> … … 515 475 > 516 476 <tbl:button 477 id="btnColumns" 517 478 image="columns.png" 518 479 onclick="configureColumns()" … … 521 482 /> 522 483 <tbl:button 484 id="btnNewReporterList" 523 485 image="add.png" 524 onclick="newReporterList()"525 486 title="New reporter list…" 526 487 tooltip="Create a new reporter list from matching features" … … 528 489 /> 529 490 <tbl:button 491 id="btnImport" 492 data-plugin-type="IMPORT" 530 493 image="import.png" 531 onclick="runPlugin('ImportItems')"532 494 title="Import…" 533 495 tooltip="Import data" … … 535 497 /> 536 498 <tbl:button 499 id="btnExport" 500 data-plugin-type="EXPORT" 537 501 image="export.png" 538 onclick="runPlugin('ExportItems')"539 502 title="Export…" 540 503 tooltip="Export data" … … 542 505 /> 543 506 <tbl:button 507 id="btnRunPlugin" 508 data-plugin-type="OTHER" 544 509 image="runplugin.png" 545 onclick="runPlugin('RunListPlugin')"546 510 title="Run plugin…" 547 511 tooltip="Run a plugin" … … 642 606 visible="<%=mode.hasIcons()%>" 643 607 ></tbl:header> 644 <tbl:cell column="position"><div class="link" onclick="itemOnClick(event, <%=itemId%>)" 645 title="<%=tooltip%>"><%=item.getPosition()%></div></tbl:cell> 608 <tbl:cell column="position"><div 609 class="link table-item" 610 data-item-id="<%=itemId%>" 611 data-no-edit="1" 612 data-extra-url="&arraydesign_id=<%=arrayDesignId%>" 613 tabindex="0" 614 title="<%=tooltip%>"><%=item.getPosition()%></div></tbl:cell> 646 615 <tbl:cell column="id"><%=item.getId()%></tbl:cell> 647 <tbl:cell column="externalId"><div class="link" onclick="itemOnClick(event, <%=itemId%>)" 648 title="<%=tooltip%>"><%=HTML.encodeTags(item.getExternalId())%></div></tbl:cell> 616 <tbl:cell column="externalId"><div 617 class="link table-item" 618 data-item-id="<%=itemId%>" 619 data-no-edit="1" 620 data-extra-url="&arraydesign_id=<%=arrayDesignId%>" 621 tabindex="0" 622 title="<%=tooltip%>"><%=HTML.encodeTags(item.getExternalId())%></div></tbl:cell> 649 623 <tbl:cell column="block"><%=block.getBlockNumber()%></tbl:cell> 650 624 <tbl:cell column="row"><%=item.getRow()%></tbl:cell> -
trunk/www/lims/arraydesigns/features/view_feature.jsp
r6146 r6307 97 97 } 98 98 99 100 101 99 String title = "Feature of "+HTML.encodeTags(design.getName()) + " at position " + feature.getPosition(); 102 100 %> 103 104 <base:page title="<%=title%>" type="popup"> 105 <base:head scripts="tabcontrol.js" styles="tabcontrol.css"> 101 <base:page title="<%=title%>" type="popup" id="view-page"> 102 <base:head scripts="tabcontrol-2.js,~features.js" styles="tabcontrol.css"> 106 103 </base:head> 107 104 <base:body> … … 323 320 324 321 <base:buttongroup subclass="dialogbuttons"> 325 <base:button onclick="window.close()" title="Close" />322 <base:button id="close" title="Close" /> 326 323 </base:buttongroup> 327 324 -
trunk/www/lims/arraydesigns/list_designs.jsp
r6221 r6307 144 144 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 145 145 %> 146 <base:page title="<%=title==null ? "Array designs" : title%>" type="<%=mode.getPageType()%>" >147 <base:head scripts="table.js " styles="table.css,toolbar.css">146 <base:page title="<%=title==null ? "Array designs" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 147 <base:head scripts="table.js,~designs.js" styles="table.css,toolbar.css"> 148 148 <ext:scripts context="<%=jspContext%>" /> 149 149 <ext:stylesheets context="<%=jspContext%>" /> 150 <script>151 var submitPage = 'index.jsp';152 var formId = 'designs';153 function newItem()154 {155 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);156 }157 function editItem(itemId)158 {159 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);160 }161 function viewItem(itemId)162 {163 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);164 }165 function itemOnClick(evt, itemId)166 {167 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);168 }169 function deleteItems()170 {171 var frm = document.forms[formId];172 if (Forms.numChecked(frm) == 0)173 {174 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');175 return;176 }177 frm.action = submitPage;178 frm.cmd.value = 'DeleteItems';179 frm.submit();180 }181 182 function restoreItems()183 {184 var frm = document.forms[formId];185 if (Forms.numChecked(frm) == 0)186 {187 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');188 return;189 }190 frm.action = submitPage;191 frm.cmd.value = 'RestoreItems';192 frm.submit();193 }194 function setOwner()195 {196 Table.setOwnerOfItems(formId);197 }198 function shareItems()199 {200 Table.shareItems(formId);201 }202 function configureColumns()203 {204 Table.configureColumns(formId);205 }206 function runPlugin(cmd)207 {208 Table.submitToPopup(formId, cmd, 750, 500);209 }210 function returnSelected()211 {212 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);213 window.close();214 }215 function newBatch(designId)216 {217 Main.viewOrEditItem('<%=ID%>', 'ARRAYBATCH', 0, true, '&arraydesign_id='+designId);218 }219 </script>220 150 </base:head> 221 151 … … 452 382 > 453 383 <tbl:button 384 id="btnNewItem" 454 385 disabled="<%=!createPermission%>" 455 386 image="new.png" 456 onclick="newItem()"457 387 title="New…" 458 388 tooltip="<%=createPermission ? "Create new array design" : "You do not have permission to create array designs"%>" 459 389 /> 460 390 <tbl:button 391 id="btnDeleteItems" 461 392 image="delete.png" 462 onclick="deleteItems()"463 393 title="Delete" 464 394 tooltip="Delete the selected items" 465 395 /> 466 396 <tbl:button 397 id="btnRestoreItems" 467 398 image="restore.png" 468 onclick="restoreItems()"469 399 title="Restore" 470 400 tooltip="Restore the selected (deleted) items" 471 401 /> 472 402 <tbl:button 403 id="btnShareItems" 473 404 image="share.png" 474 onclick="shareItems()"475 405 title="Share…" 476 406 tooltip="Share the selected items" 477 407 /> 478 408 <tbl:button 409 id="btnSetOwner" 479 410 image="take_ownership.png" 480 onclick="setOwner()"481 411 title="Set owner…" 482 412 tooltip="Change owner of the selected items" 483 413 /> 484 414 <tbl:button 415 id="btnColumns" 485 416 image="columns.png" 486 onclick="configureColumns()"487 417 title="Columns…" 488 418 tooltip="Show, hide and re-order columns" 489 419 /> 490 420 <tbl:button 421 id="btnImport" 422 data-plugin-type="IMPORT" 491 423 image="import.png" 492 onclick="runPlugin('ImportItems')"493 424 title="Import…" 494 425 tooltip="Import data" … … 496 427 /> 497 428 <tbl:button 429 id="btnExport" 430 data-plugin-type="EXPORT" 498 431 image="export.png" 499 onclick="runPlugin('ExportItems')"500 432 title="Export…" 501 433 tooltip="Export data" … … 503 435 /> 504 436 <tbl:button 437 id="btnRunPlugin" 438 data-plugin-type="OTHER" 505 439 image="runplugin.png" 506 onclick="runPlugin('RunListPlugin')"507 440 title="Run plugin…" 508 441 tooltip="Run a plugin" … … 630 563 visible="<%=item.isShared()%>" 631 564 /> </tbl:header> 632 <tbl:cell column="name"><div class="link" 633 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 565 <tbl:cell column="name"><div 566 class="link table-item" 567 data-item-id="<%=itemId%>" 568 data-no-edit="<%=writePermission ? 0 : 1 %>" 569 tabindex="0" 634 570 title="<%=tooltip%>"><%=name%></div></tbl:cell> 635 571 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 702 638 %> 703 639 <base:icon 640 subclass="link auto-init" 641 data-auto-init="new-batch" 642 data-item-id="<%=itemId %>" 704 643 image="add.png" 705 onclick="<%="newBatch("+itemId+")"%>"706 644 tooltip="Create new batch" 707 645 visible="<%=mode.hasEditLink() && createBatchPermission && usePermission %>" … … 782 720 783 721 <base:buttongroup subclass="dialogbuttons"> 784 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />785 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />786 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />722 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 723 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 724 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 787 725 </base:buttongroup> 788 726 -
trunk/www/lims/arraydesigns/view_design.jsp
r6255 r6307 124 124 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 125 125 %> 126 <base:page title="<%=title%>" >127 <base:head scripts="table.js,tabcontrol .js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">126 <base:page title="<%=title%>" id="view-page"> 127 <base:head scripts="table.js,tabcontrol-2.js,~designs.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> 128 128 <ext:scripts context="<%=jspContext%>" /> 129 129 <ext:stylesheets context="<%=jspContext%>" /> 130 <script>131 function editItem()132 {133 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);134 }135 function shareItem()136 {137 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'ShareArrayDesign', 600, 400);138 }139 function deleteItem()140 {141 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');142 }143 function restoreItem()144 {145 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');146 }147 function deleteItemPermanently()148 {149 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');150 }151 function itemDeleted()152 {153 Main.listItems('<%=ID%>', '<%=itemType.name()%>');154 }155 function showUsingItems()156 {157 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);158 }159 function setOwner()160 {161 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);162 }163 function runPlugin(cmd)164 {165 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);166 }167 function viewFeatures()168 {169 location.href = 'features/index.jsp?ID=<%=ID%>&arraydesign_id=<%=itemId%>';170 }171 function managePlates()172 {173 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ManagePlates&item_id=<%=itemId%>', 'ManagePlates', 600, 400);174 }175 function switchTab(tabControlId, tabId)176 {177 if (TabControl.isActive(tabControlId, tabId)) return;178 if (tabId == 'features')179 {180 viewFeatures();181 }182 else183 {184 TabControl.setActiveTab(tabControlId, tabId);185 }186 }187 function newBatch()188 {189 Main.viewOrEditItem('<%=ID%>', 'ARRAYBATCH', 0, true, '&arraydesign_id=<%=itemId%>');190 }191 function verifyReporters()192 {193 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=VerifyReporters&item_id=<%=itemId%>', 'VerifyReporters', 750, 500);194 }195 </script>196 130 </base:head> 197 131 <base:body> … … 200 134 /><p:pathelement title="<%=HTML.encodeTags(design.getName())%>" 201 135 /></p:path> 136 <div id="page-data" data-item-id="<%=itemId%>"></div> 202 137 203 138 <t:tabcontrol 204 139 id="main" 205 140 subclass="content mastertabcontrol" 206 active="<%=tab%>" switch="switchTab" remember="false">141 active="<%=tab%>"> 207 142 <t:tab id="properties" title="Properties"> 208 143 <div> … … 216 151 /> 217 152 <base:icon 153 id="btnDeletePermanently" 218 154 image="deleted.png" 219 onclick="deleteItemPermanently()"220 155 tooltip="This item has been flagged for deletion. Click to delete it now." 221 156 enabled="<%=deletePermanentlyPermission %>" 222 157 visible="<%=isRemoved%>" 223 158 /> 224 <base:icon image="used.png" 225 onclick="showUsingItems()" 159 <base:icon 160 id="btnUsingItems" 161 image="used.png" 226 162 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 227 163 visible="<%=isRemoved && isUsed%>" /> … … 230 166 <tbl:toolbar subclass="bottomborder"> 231 167 <tbl:button 168 id="btnEdit" 232 169 disabled="<%=!writePermission%>" 233 170 image="edit.png" 234 onclick="editItem()"235 171 title="Edit…" 236 172 tooltip="<%=writePermission ? "Edit this array design" : "You do not have permission to edit this array design"%>" 237 173 /> 238 174 <tbl:button 175 id="btnDelete" 239 176 disabled="<%=!deletePermission%>" 240 177 image="delete.png" 241 onclick="deleteItem()"242 178 title="Delete" 243 179 visible="<%=!design.isRemoved()%>" … … 245 181 /> 246 182 <tbl:button 183 id="btnRestore" 247 184 disabled="<%=!writePermission%>" 248 185 image="restore.png" 249 onclick="restoreItem()"250 186 title="Restore" 251 187 visible="<%=design.isRemoved()%>" … … 253 189 /> 254 190 <tbl:button 191 id="btnShare" 255 192 disabled="<%=!sharePermission%>" 256 193 image="share.png" 257 onclick="shareItem()"258 194 title="Share…" 259 195 tooltip="<%=sharePermission ? "Share this array design to other user, groups and projects" : "You do not have permission to share this array design"%>" 260 196 /> 261 197 <tbl:button 198 id="btnSetOwner" 262 199 disabled="<%=!setOwnerPermission%>" 263 200 image="take_ownership.png" 264 onclick="setOwner()"265 201 title="Set owner…" 266 202 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 267 203 /> 268 204 <tbl:button 205 id="btnNewBatch" 269 206 image="add.png" 270 onclick="newBatch()"271 207 title="New batch…" 272 208 tooltip="Create a new array batch with this design" … … 274 210 /> 275 211 <tbl:button 212 id="btnImport" 276 213 image="import.png" 277 onclick="runPlugin('ImportItem')"214 data-plugin-type="IMPORT" 278 215 title="Import…" 279 216 tooltip="Import data" … … 281 218 /> 282 219 <tbl:button 283 image="export.png" 284 onclick="runPlugin('ExportItem')" 220 id="btnExport" 221 image="export.png" 222 data-plugin-type="EXPORT" 285 223 title="Export…" 286 224 tooltip="Export data" … … 288 226 /> 289 227 <tbl:button 290 image="runplugin.png" 291 onclick="runPlugin('RunPlugin')" 228 id="btnRunPlugin" 229 image="runplugin.png" 230 data-plugin-type="OTHER" 292 231 title="Run plugin…" 293 232 tooltip="Run a plugin" … … 295 234 /> 296 235 <tbl:button 297 onclick="managePlates()"236 id="btnManagePlates" 298 237 title="Manage plates…" 299 238 tooltip="Attach / detach plates to this array design" … … 304 243 <tbl:button 305 244 image="help.png" 306 onclick="<%="Main.openHelp('" + ID +"', 'arraydesign.view.properties')"%>" 245 subclass="auto-init" 246 data-auto-init="help" 247 data-help-id="arraydesign.view.properties" 307 248 title="Help…" 308 249 tooltip="Get help about this page" … … 554 495 555 496 <t:tab id="annotations" title="Annotations" 556 tooltip="View annotation values" clazz="white" 557 activate="AnnotationsList.loadOnce()"> 497 tooltip="View annotation values" clazz="white"> 558 498 <jsp:include page="../../common/annotations/list_frameset.jsp"> 559 499 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 563 503 </t:tab> 564 504 565 <t:tab id="features" title="Features" visible="<%=design.getNumDbFeatures() > 0%>"/> 505 <t:tab id="features" title="Features" visible="<%=design.getNumDbFeatures() > 0%>"> 506 <div class="filled absolutefull"> 507 <table style="margin: auto; height: 100%;"><tr><td> 508 <b>Please wait. The features information is loading...</b> 509 </td></tr></table> 510 </div> 511 </t:tab> 566 512 567 513 <t:tab id="overview" title="Overview" 568 tooltip="Display a tree overview of related items" 569 activate="Overview.loadOnce()"> 514 tooltip="Display a tree overview of related items"> 570 515 <jsp:include page="../../common/overview/overview.jsp"> 571 516 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 576 521 <t:tab id="history" title="Change history" 577 522 tooltip="Displays a log of all modifications made to this item" 578 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" 579 activate="History.loadOnce()"> 523 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 580 524 <jsp:include page="../../common/history/frameset.jsp"> 581 525 <jsp:param name="item_type" value="<%=itemType.name()%>" /> -
trunk/www/lims/arrayslides/list_slides.jsp
r6221 r6307 107 107 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 108 108 %> 109 <base:page title="<%=title==null ? "Array slides" : title%>" type="<%=mode.getPageType()%>" >110 <base:head scripts="table.js " styles="table.css,toolbar.css">109 <base:page title="<%=title==null ? "Array slides" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 110 <base:head scripts="table.js,~slides.js" styles="table.css,toolbar.css"> 111 111 <ext:scripts context="<%=jspContext%>" /> 112 112 <ext:stylesheets context="<%=jspContext%>" /> 113 <script>114 var submitPage = 'index.jsp';115 var formId = 'slides';116 function newItem()117 {118 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);119 }120 function newItems()121 {122 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=NewItems', 'NewArraySlides', 750, 500);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 if (Forms.numChecked(frm) == 0)140 {141 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');142 return;143 }144 frm.action = submitPage;145 frm.cmd.value = 'DeleteItems';146 frm.submit();147 }148 function restoreItems()149 {150 var frm = document.forms[formId];151 if (Forms.numChecked(frm) == 0)152 {153 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');154 return;155 }156 frm.action = submitPage;157 frm.cmd.value = 'RestoreItems';158 frm.submit();159 }160 function setOwner()161 {162 Table.setOwnerOfItems(formId);163 }164 function shareItems()165 {166 Table.shareItems(formId);167 }168 function configureColumns()169 {170 Table.configureColumns(formId);171 }172 function runPlugin(cmd)173 {174 Table.submitToPopup(formId, cmd, 750, 500);175 }176 function returnSelected()177 {178 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);179 window.close();180 }181 </script>182 113 </base:head> 183 114 … … 361 292 > 362 293 <tbl:button 294 id="btnNewItem" 363 295 disabled="<%=!createPermission%>" 364 296 image="new.png" 365 onclick="newItem()"366 297 title="New…" 367 298 tooltip="<%=createPermission ? "Create new array slide" : "You do not have permission to create array slides"%>" 368 299 /> 369 300 <tbl:button 301 id="btnNewItemsWizard" 370 302 disabled="<%=!createPermission%>" 371 303 image="new_wizard.png" 372 onclick="newItems()"373 304 title="Create multiple…" 374 305 tooltip="<%=createPermission ? "Create multiple new array slides using a wizard" : "You do not have permission to create array slides"%>" 375 306 /> 376 307 <tbl:button 308 id="btnDeleteItems" 377 309 image="delete.png" 378 onclick="deleteItems()"379 310 title="Delete" 380 311 tooltip="Delete the selected items" 381 312 /> 382 313 <tbl:button 314 id="btnRestoreItems" 383 315 image="restore.png" 384 onclick="restoreItems()"385 316 title="Restore" 386 317 tooltip="Restore the selected (deleted) items" 387 318 /> 388 319 <tbl:button 320 id="btnShareItems" 389 321 image="share.png" 390 onclick="shareItems()"391 322 title="Share…" 392 323 tooltip="Share the selected items" 393 324 /> 394 325 <tbl:button 326 id="btnSetOwner" 395 327 image="take_ownership.png" 396 onclick="setOwner()"397 328 title="Set owner…" 398 329 tooltip="Change owner of the selected items" 399 330 /> 400 331 <tbl:button 332 id="btnColumns" 401 333 image="columns.png" 402 onclick="configureColumns()"403 334 title="Columns…" 404 335 tooltip="Show, hide and re-order columns" 405 336 /> 406 337 <tbl:button 338 id="btnImport" 339 data-plugin-type="IMPORT" 407 340 image="import.png" 408 onclick="runPlugin('ImportItems')"409 341 title="Import…" 410 342 tooltip="Import data" … … 412 344 /> 413 345 <tbl:button 346 id="btnExport" 347 data-plugin-type="EXPORT" 414 348 image="export.png" 415 onclick="runPlugin('ExportItems')"416 349 title="Export…" 417 350 tooltip="Export data" … … 419 352 /> 420 353 <tbl:button 354 id="btnRunPlugin" 355 data-plugin-type="OTHER" 421 356 image="runplugin.png" 422 onclick="runPlugin('RunListPlugin')"423 357 title="Run plugin…" 424 358 tooltip="Run a plugin" … … 538 472 visible="<%=item.isShared()%>" 539 473 /> </tbl:header> 540 <tbl:cell column="name"><div class="link" 541 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 474 <tbl:cell column="name"><div 475 class="link table-item" 476 data-item-id="<%=itemId%>" 477 data-no-edit="<%=writePermission ? 0 : 1 %>" 478 tabindex="0" 542 479 title="<%=tooltip%>"><%=name%></div></tbl:cell> 543 480 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 641 578 642 579 <base:buttongroup subclass="dialogbuttons"> 643 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />644 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />645 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />580 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 581 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 582 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 646 583 </base:buttongroup> 647 584 -
trunk/www/lims/arrayslides/view_slide.jsp
r6255 r6307 105 105 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 106 106 %> 107 <base:page title="<%=title%>" >108 <base:head scripts="tabcontrol .js,table.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">107 <base:page title="<%=title%>" id="view-page"> 108 <base:head scripts="tabcontrol-2.js,table.js,~slides.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css"> 109 109 <ext:scripts context="<%=jspContext%>" /> 110 110 <ext:stylesheets context="<%=jspContext%>" /> 111 <script>112 function editItem()113 {114 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);115 }116 function shareItem()117 {118 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'ShareArraySlide', 600, 400);119 }120 function deleteItem()121 {122 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');123 }124 function restoreItem()125 {126 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');127 }128 function deleteItemPermanently()129 {130 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');131 }132 function itemDeleted()133 {134 Main.listItems('<%=ID%>', '<%=itemType.name()%>');135 }136 function showUsingItems()137 {138 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);139 }140 function setOwner()141 {142 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);143 }144 function runPlugin(cmd)145 {146 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);147 }148 </script>149 111 </base:head> 150 112 <base:body> … … 153 115 /><p:pathelement title="<%=HTML.encodeTags(slide.getName())%>" 154 116 /></p:path> 117 <div id="page-data" data-item-id="<%=itemId%>"></div> 155 118 156 119 <t:tabcontrol … … 169 132 /> 170 133 <base:icon 134 id="btnDeletePermanently" 171 135 image="deleted.png" 172 onclick="deleteItemPermanently()"173 136 tooltip="This item has been flagged for deletion. Click to delete it now." 174 137 enabled="<%=deletePermanentlyPermission %>" 175 138 visible="<%=isRemoved%>" 176 139 /> 177 <base:icon image="used.png" 178 onclick="showUsingItems()" 140 <base:icon 141 id="btnUsingItems" 142 image="used.png" 179 143 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 180 144 visible="<%=isRemoved && isUsed%>" /> … … 183 147 <tbl:toolbar subclass="bottomborder"> 184 148 <tbl:button 149 id="btnEdit" 185 150 disabled="<%=!writePermission%>" 186 151 image="edit.png" 187 onclick="editItem()"188 152 title="Edit…" 189 153 tooltip="<%=writePermission ? "Edit this array slide" : "You do not have permission to edit this array slide"%>" 190 154 /> 191 155 <tbl:button 156 id="btnDelete" 192 157 disabled="<%=!deletePermission%>" 193 158 image="delete.png" 194 onclick="deleteItem()"195 159 title="Delete" 196 160 visible="<%=!slide.isRemoved()%>" … … 198 162 /> 199 163 <tbl:button 164 id="btnRestore" 200 165 disabled="<%=!writePermission%>" 201 166 image="restore.png" 202 onclick="restoreItem()"203 167 title="Restore" 204 168 visible="<%=slide.isRemoved()%>" … … 206 170 /> 207 171 <tbl:button 172 id="btnShare" 208 173 disabled="<%=!sharePermission%>" 209 174 image="share.png" 210 onclick="shareItem()"211 175 title="Share…" 212 176 tooltip="<%=sharePermission ? "Share this array slide to other user, groups and projects" : "You do not have permission to share this array slide"%>" 213 177 /> 214 178 <tbl:button 179 id="btnSetOwner" 215 180 disabled="<%=!setOwnerPermission%>" 216 181 image="take_ownership.png" 217 onclick="setOwner()"218 182 title="Set owner…" 219 183 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 220 184 /> 221 185 <tbl:button 186 id="btnImport" 222 187 image="import.png" 223 onclick="runPlugin('ImportItem')"188 data-plugin-type="IMPORT" 224 189 title="Import…" 225 190 tooltip="Import data" … … 227 192 /> 228 193 <tbl:button 229 image="export.png" 230 onclick="runPlugin('ExportItem')" 194 id="btnExport" 195 image="export.png" 196 data-plugin-type="EXPORT" 231 197 title="Export…" 232 198 tooltip="Export data" … … 234 200 /> 235 201 <tbl:button 236 image="runplugin.png" 237 onclick="runPlugin('RunPlugin')" 202 id="btnRunPlugin" 203 image="runplugin.png" 204 data-plugin-type="OTHER" 238 205 title="Run plugin…" 239 206 tooltip="Run a plugin" … … 244 211 <tbl:button 245 212 image="help.png" 246 onclick="<%="Main.openHelp('" + ID +"', 'arrayslide.view.properties')"%>" 213 subclass="auto-init" 214 data-auto-init="help" 215 data-help-id="arrayslide.view.properties" 247 216 title="Help…" 248 217 tooltip="Get help about this page" … … 313 282 314 283 <t:tab id="annotations" title="Annotations & parameters" 315 tooltip="View annotation values and protocol parameters" clazz="white" 316 activate="AnnotationsList.loadOnce()"> 284 tooltip="View annotation values and protocol parameters" clazz="white"> 317 285 <jsp:include page="../../common/annotations/list_frameset.jsp"> 318 286 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 323 291 324 292 <t:tab id="overview" title="Overview" 325 tooltip="Display a tree overview of related items" 326 activate="Overview.loadOnce()"> 293 tooltip="Display a tree overview of related items"> 327 294 <jsp:include page="../../common/overview/overview.jsp"> 328 295 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 333 300 <t:tab id="history" title="Change history" 334 301 tooltip="Displays a log of all modifications made to this item" 335 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" 336 activate="History.loadOnce()"> 302 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 337 303 <jsp:include page="../../common/history/frameset.jsp"> 338 304 <jsp:param name="item_type" value="<%=itemType.name()%>" /> -
trunk/www/lims/platemappings/list_mappings.jsp
r6221 r6307 106 106 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 107 107 %> 108 <base:page title="<%=title==null ? "Plate mappings" : title%>" type="<%=mode.getPageType()%>" >109 <base:head scripts="table.js " styles="table.css,toolbar.css">108 <base:page title="<%=title==null ? "Plate mappings" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 109 <base:head scripts="table.js,~mappings.js" styles="table.css,toolbar.css"> 110 110 <ext:scripts context="<%=jspContext%>" /> 111 111 <ext:stylesheets context="<%=jspContext%>" /> 112 <script>113 var submitPage = 'index.jsp';114 var formId = 'mappings';115 function newItem()116 {117 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);118 }119 function editItem(itemId)120 {121 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);122 }123 function viewItem(itemId)124 {125 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);126 }127 function itemOnClick(evt, itemId)128 {129 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);130 }131 function deleteItems()132 {133 var frm = document.forms[formId];134 if (Forms.numChecked(frm) == 0)135 {136 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');137 return;138 }139 frm.action = submitPage;140 frm.cmd.value = 'DeleteItems';141 frm.submit();142 }143 function restoreItems()144 {145 var frm = document.forms[formId];146 if (Forms.numChecked(frm) == 0)147 {148 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');149 return;150 }151 frm.action = submitPage;152 frm.cmd.value = 'RestoreItems';153 frm.submit();154 }155 function setOwner()156 {157 Table.setOwnerOfItems(formId);158 }159 function shareItems()160 {161 Table.shareItems(formId);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 </script>177 112 </base:head> 178 113 … … 328 263 > 329 264 <tbl:button 265 id="btnDeleteItems" 330 266 image="delete.png" 331 onclick="deleteItems()"332 267 title="Delete" 333 268 tooltip="Delete the selected items" 334 269 /> 335 270 <tbl:button 271 id="btnRestoreItems" 336 272 image="restore.png" 337 onclick="restoreItems()"338 273 title="Restore" 339 274 tooltip="Restore the selected (deleted) items" 340 275 /> 341 276 <tbl:button 277 id="btnShareItems" 342 278 image="share.png" 343 onclick="shareItems()"344 279 title="Share…" 345 280 tooltip="Share the selected items" 346 281 /> 347 282 <tbl:button 283 id="btnSetOwner" 348 284 image="take_ownership.png" 349 onclick="setOwner()"350 285 title="Set owner…" 351 286 tooltip="Change owner of the selected items" 352 287 /> 353 288 <tbl:button 289 id="btnColumns" 354 290 image="columns.png" 355 onclick="configureColumns()"356 291 title="Columns…" 357 292 tooltip="Show, hide and re-order columns" 358 293 /> 359 294 <tbl:button 295 id="btnImport" 296 data-plugin-type="IMPORT" 360 297 image="import.png" 361 onclick="runPlugin('ImportItems')"362 298 title="Import…" 363 299 tooltip="Import data" … … 365 301 /> 366 302 <tbl:button 303 id="btnExport" 304 data-plugin-type="EXPORT" 367 305 image="export.png" 368 onclick="runPlugin('ExportItems')"369 306 title="Export…" 370 307 tooltip="Export data" … … 372 309 /> 373 310 <tbl:button 311 id="btnRunPlugin" 312 data-plugin-type="OTHER" 374 313 image="runplugin.png" 375 onclick="runPlugin('RunListPlugin')"376 314 title="Run plugin…" 377 315 tooltip="Run a plugin" … … 491 429 visible="<%=item.isShared()%>" 492 430 /> </tbl:header> 493 <tbl:cell column="name"><div class="link" 494 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 431 <tbl:cell column="name"><div 432 class="link table-item" 433 data-item-id="<%=itemId%>" 434 data-no-edit="<%=writePermission ? 0 : 1 %>" 435 tabindex="0" 495 436 title="<%=tooltip%>"><%=name%></div></tbl:cell> 496 437 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 564 505 565 506 <base:buttongroup subclass="dialogbuttons"> 566 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />567 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />568 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />507 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 508 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 509 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 569 510 </base:buttongroup> 570 511 -
trunk/www/lims/platemappings/view_mapping.jsp
r6146 r6307 106 106 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 107 107 %> 108 <base:page title="<%=title%>" >109 <base:head scripts="table.js,tabcontrol .js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">108 <base:page title="<%=title%>" id="view-page"> 109 <base:head scripts="table.js,tabcontrol-2.js,~mappings.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css"> 110 110 <ext:scripts context="<%=jspContext%>" /> 111 111 <ext:stylesheets context="<%=jspContext%>" /> 112 <script>113 function editItem()114 {115 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);116 }117 function shareItem()118 {119 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'SharePlateMapping', 600, 400);120 }121 function deleteItem()122 {123 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');124 }125 function restoreItem()126 {127 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');128 }129 function deleteItemPermanently()130 {131 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');132 }133 function itemDeleted()134 {135 Main.listItems('<%=ID%>', '<%=itemType.name()%>');136 }137 function showUsingItems()138 {139 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);140 }141 function setOwner()142 {143 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);144 }145 function runPlugin(cmd)146 {147 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);148 }149 </script>150 112 </base:head> 151 113 <base:body> … … 154 116 /><p:pathelement title="<%=HTML.encodeTags(mapping.getName())%>" 155 117 /></p:path> 118 <div id="page-data" data-item-id="<%=itemId%>"></div> 156 119 157 120 <t:tabcontrol … … 170 133 /> 171 134 <base:icon 135 id="btnDeletePermanently" 172 136 image="deleted.png" 173 onclick="deleteItemPermanently()"174 137 tooltip="This item has been flagged for deletion. Click to delete it now." 175 138 enabled="<%=deletePermanentlyPermission %>" 176 139 visible="<%=isRemoved%>" 177 140 /> 178 <base:icon image="used.png" 179 onclick="showUsingItems()" 141 <base:icon 142 id="btnUsingItems" 143 image="used.png" 180 144 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 181 145 visible="<%=isRemoved && isUsed%>" /> … … 184 148 <tbl:toolbar subclass="bottomborder"> 185 149 <tbl:button 150 id="btnEdit" 186 151 disabled="<%=!writePermission%>" 187 152 image="edit.png" 188 onclick="editItem()"189 153 title="Edit…" 190 154 tooltip="<%=writePermission ? "Edit this plate mapping" : "You do not have permission to edit this plate mapping"%>" 191 155 /> 192 156 <tbl:button 157 id="btnDelete" 193 158 disabled="<%=!deletePermission%>" 194 159 image="delete.png" 195 onclick="deleteItem()"196 160 title="Delete" 197 161 visible="<%=!mapping.isRemoved()%>" … … 199 163 /> 200 164 <tbl:button 165 id="btnRestore" 201 166 disabled="<%=!writePermission%>" 202 167 image="restore.png" 203 onclick="restoreItem()"204 168 title="Restore" 205 169 visible="<%=mapping.isRemoved()%>" … … 207 171 /> 208 172 <tbl:button 173 id="btnShare" 209 174 disabled="<%=!sharePermission%>" 210 175 image="share.png" 211 onclick="shareItem()"212 176 title="Share…" 213 177 tooltip="<%=sharePermission ? "Share this plate mapping to other user, groups and projects" : "You do not have permission to share this plate mapping"%>" 214 178 /> 215 179 <tbl:button 180 id="btnSetOwner" 216 181 disabled="<%=!setOwnerPermission%>" 217 182 image="take_ownership.png" 218 onclick="setOwner()"219 183 title="Set owner…" 220 184 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 221 185 /> 222 186 <tbl:button 187 id="btnImport" 223 188 image="import.png" 224 onclick="runPlugin('ImportItem')"189 data-plugin-type="IMPORT" 225 190 title="Import…" 226 191 tooltip="Import data" … … 228 193 /> 229 194 <tbl:button 230 image="export.png" 231 onclick="runPlugin('ExportItem')" 195 id="btnExport" 196 image="export.png" 197 data-plugin-type="EXPORT" 232 198 title="Export…" 233 199 tooltip="Export data" … … 235 201 /> 236 202 <tbl:button 237 image="runplugin.png" 238 onclick="runPlugin('RunPlugin')" 203 id="btnRunPlugin" 204 image="runplugin.png" 205 data-plugin-type="OTHER" 239 206 title="Run plugin…" 240 207 tooltip="Run a plugin" … … 245 212 <tbl:button 246 213 image="help.png" 247 onclick="<%="Main.openHelp('" + ID +"', 'platemapping.view.properties')"%>" 214 subclass="auto-init" 215 data-auto-init="help" 216 data-help-id="platemapping.view.properties" 248 217 title="Help…" 249 218 tooltip="Get help about this page" -
trunk/www/lims/plates/events/list_events.jsp
r6221 r6307 104 104 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 105 105 %> 106 <base:page title="<%=title%>" type="<%=mode.getPageType()%>" >107 <base:head scripts="table.js,tabcontrol .js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">106 <base:page title="<%=title%>" type="<%=mode.getPageType()%>" id="list-page"> 107 <base:head scripts="table.js,tabcontrol-2.js,~events.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> 108 108 <ext:scripts context="<%=jspContext%>" /> 109 109 <ext:stylesheets context="<%=jspContext%>" /> 110 <script>111 var submitPage = 'index.jsp';112 var formId = 'events';113 function newItem()114 {115 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true, '&plate_id=<%=plateId%>');116 }117 function editItem(itemId)118 {119 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);120 }121 function viewItem(itemId)122 {123 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);124 }125 function itemOnClick(evt, itemId)126 {127 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);128 }129 function deleteItems()130 {131 var frm = document.forms[formId];132 var numChecked = Forms.numChecked(frm);133 if (numChecked == 0)134 {135 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');136 return;137 }138 else139 {140 var rep = numChecked == 1 ? 'event' : 'events';141 if (!confirm('You are about to delete '+numChecked+' '+rep+'. This can\'t be undone. Continue?'))142 {143 return;144 }145 }146 frm.action = submitPage;147 frm.cmd.value = 'DeleteItems';148 frm.submit();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 function switchTab(tabControlId, tabId)164 {165 if (tabId == 'properties' || tabId == 'annotations' || tabId == 'history')166 {167 location.href = '../index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=plateId%>&tab='+tabId;168 }169 else if (tabId == 'wells')170 {171 location.href = '../wells/index.jsp?ID=<%=ID%>&plate_id=<%=plateId%>';172 }173 else174 {175 TabControl.setActiveTab(tabControlId, tabId);176 }177 }178 </script>179 110 </base:head> 180 111 … … 188 119 id="main" 189 120 subclass="content mastertabcontrol" 190 active="events" switch="switchTab">121 active="events"> 191 122 <t:tab id="properties" title="Properties" /> 192 123 <t:tab id="annotations" title="Annotations" /> … … 313 244 > 314 245 <tbl:button 246 id="btnNewItem" 247 data-extra-url="<%="&plate_id="+plateId%>" 315 248 disabled="<%=!createPermission%>" 316 249 image="new.png" 317 onclick="newItem()"318 250 title="New…" 319 251 tooltip="<%=createPermission ? "Create new event" : "You do not have permission to create events"%>" 320 252 /> 321 253 <tbl:button 254 id="btnDeleteItems" 255 data-confirm="1" 322 256 disabled="<%=!deletePermission%>" 323 257 image="delete.png" 324 258 title="Delete…" 325 onclick="deleteItems()"326 259 tooltip="<%=deletePermission ? "Delete the selected events" : "You do not have permission to delete events"%>" 327 260 /> 328 261 <tbl:button 262 id="btnColumns" 329 263 image="columns.png" 330 onclick="configureColumns()"331 264 title="Columns…" 332 265 tooltip="Show, hide and re-order columns" 333 266 /> 334 267 <tbl:button 268 id="btnImport" 269 data-plugin-type="IMPORT" 335 270 image="import.png" 336 onclick="runPlugin('ImportItems')"337 271 title="Import…" 338 272 tooltip="Import data" … … 340 274 /> 341 275 <tbl:button 276 id="btnExport" 277 data-plugin-type="EXPORT" 342 278 image="export.png" 343 onclick="runPlugin('ExportItems')"344 279 title="Export…" 345 280 tooltip="Export data" … … 347 282 /> 348 283 <tbl:button 284 id="btnRunPlugin" 285 data-plugin-type="OTHER" 349 286 image="runplugin.png" 350 onclick="runPlugin('RunListPlugin')"351 287 title="Run plugin…" 352 288 tooltip="Run a plugin" … … 451 387 <tbl:cell column="ordinal"><%=eventType.getOrdinal()%></tbl:cell> 452 388 <tbl:cell column="id"><%=item.getId()%></tbl:cell> 453 <tbl:cell column="eventType"><div class="link" 454 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 389 <tbl:cell column="eventType"><div 390 class="link table-item" 391 data-item-id="<%=itemId%>" 392 data-no-edit="<%=writePermission ? 0 : 1 %>" 393 tabindex="0" 455 394 title="<%=tooltip%>"><%=name%></div></tbl:cell> 456 395 <tbl:cell column="protocol" … … 508 447 509 448 <base:buttongroup> 510 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />511 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />512 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />449 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 450 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 451 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 513 452 </base:buttongroup> 514 453 -
trunk/www/lims/plates/events/view_event.jsp
r6146 r6307 95 95 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 96 96 %> 97 <base:page title="<%=title%>" >98 <base:head scripts="table.js,tabcontrol .js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">97 <base:page title="<%=title%>" id="view-page"> 98 <base:head scripts="table.js,tabcontrol-2.js,~events.js" styles="toolbar.css,table.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 deleteItem()107 {108 if (confirm('This can\'t be undone. Continue?'))109 {110 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&plate_id=<%=plateId%>&item_id=<%=itemId%>');111 }112 }113 function runPlugin(cmd)114 {115 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&plate_id=<%=plateId%>&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);116 }117 </script>118 101 </base:head> 119 102 <base:body> … … 125 108 /><p:pathelement title="<%="Event: "+Base.getEncodedName(currentEventType, !readCurrentEventType)%>" 126 109 /></p:path> 110 <div id="page-data" data-item-id="<%=itemId%>" data-plate-id="<%=plateId%>"></div> 127 111 128 112 <t:tabcontrol 129 113 id="main" 130 114 subclass="content mastertabcontrol" 131 active="properties" switch="switchTab">115 active="properties"> 132 116 <t:tab id="properties" title="Properties"> 133 117 <div> … … 138 122 <tbl:toolbar subclass="bottomborder"> 139 123 <tbl:button 124 id="btnEdit" 140 125 disabled="<%=!writePermission%>" 141 126 image="edit.png" 142 onclick="editItem()"143 127 title="Edit…" 144 128 tooltip="<%=writePermission ? "Edit this event" : "You do not have permission to edit this event"%>" 145 129 /> 146 130 <tbl:button 131 id="btnDelete" 132 data-confirm="1" 147 133 disabled="<%=!deletePermission%>" 148 134 image="delete.png" 149 onclick="deleteItem()"150 135 title="Delete" 151 136 tooltip="<%=deletePermission ? "Delete this event" : "You do not have permission to event this event"%>" 152 137 /> 153 138 <tbl:button 139 id="btnImport" 154 140 image="import.png" 155 onclick="runPlugin('ImportItem')"141 data-plugin-type="IMPORT" 156 142 title="Import…" 157 143 tooltip="Import data" … … 159 145 /> 160 146 <tbl:button 161 image="export.png" 162 onclick="runPlugin('ExportItem')" 147 id="btnExport" 148 image="export.png" 149 data-plugin-type="EXPORT" 163 150 title="Export…" 164 151 tooltip="Export data" … … 166 153 /> 167 154 <tbl:button 168 image="runplugin.png" 169 onclick="runPlugin('RunPlugin')" 155 id="btnRunPlugin" 156 image="runplugin.png" 157 data-plugin-type="OTHER" 170 158 title="Run plugin…" 171 159 tooltip="Run a plugin" … … 176 164 <tbl:button 177 165 image="help.png" 178 onclick="<%="Main.openHelp('" + ID +"', 'plateevent.view.properties')"%>" 166 subclass="auto-init" 167 data-auto-init="help" 168 data-help-id="plateevent.view.properties" 179 169 title="Help…" 180 170 tooltip="Get help about this page" -
trunk/www/lims/plates/list_plates.jsp
r6221 r6307 130 130 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 131 131 %> 132 <base:page title="<%=title==null ? "Plates" : title%>" type="<%=mode.getPageType()%>" >133 <base:head scripts="table.js " styles="table.css,toolbar.css">132 <base:page title="<%=title==null ? "Plates" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 133 <base:head scripts="table.js,~plates.js" styles="table.css,toolbar.css"> 134 134 <ext:scripts context="<%=jspContext%>" /> 135 135 <ext:stylesheets context="<%=jspContext%>" /> 136 <script>137 var submitPage = 'index.jsp';138 var formId = 'plates';139 function newItem()140 {141 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);142 }143 function editItem(itemId)144 {145 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);146 }147 function viewItem(itemId)148 {149 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);150 }151 function itemOnClick(evt, itemId)152 {153 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);154 }155 function deleteItems()156 {157 var frm = document.forms[formId];158 if (Forms.numChecked(frm) == 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 if (Forms.numChecked(frm) == 0)171 {172 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');173 return;174 }175 frm.action = submitPage;176 frm.cmd.value = 'RestoreItems';177 frm.submit();178 }179 function setOwner()180 {181 Table.setOwnerOfItems(formId);182 }183 function shareItems()184 {185 Table.shareItems(formId);186 }187 function configureColumns()188 {189 Table.configureColumns(formId);190 }191 function runPlugin(cmd)192 {193 Table.submitToPopup(formId, cmd, 750, 500);194 }195 function returnSelected()196 {197 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);198 window.close();199 }200 function mergePlates()201 {202 Main.openPopup('merge_plates.jsp?ID=<%=ID%>', 'MergePlates', 600, 400);203 }204 </script>205 136 </base:head> 206 137 … … 400 331 > 401 332 <tbl:button 333 id="btnMergePlates" 402 334 disabled="<%=!createPermission%>" 403 335 image="new.png" 404 onclick="mergePlates()"405 336 title="Merge…" 406 337 tooltip="<%=createPermission ? "Create new plates by merging other plates" : "You do not have permission to create plates"%>" 407 338 /> 408 339 <tbl:button 340 id="btnDeleteItems" 409 341 image="delete.png" 410 onclick="deleteItems()"411 342 title="Delete" 412 343 tooltip="Delete the selected items" 413 344 /> 414 345 <tbl:button 346 id="btnRestoreItems" 415 347 image="restore.png" 416 onclick="restoreItems()"417 348 title="Restore" 418 349 tooltip="Restore the selected (deleted) items" 419 350 /> 420 351 <tbl:button 352 id="btnShareItems" 421 353 image="share.png" 422 onclick="shareItems()"423 354 title="Share…" 424 355 tooltip="Share the selected items" 425 356 /> 426 357 <tbl:button 358 id="btnSetOwner" 427 359 image="take_ownership.png" 428 onclick="setOwner()"429 360 title="Set owner…" 430 361 tooltip="Change owner of the selected items" 431 362 /> 432 363 <tbl:button 364 id="btnColumns" 433 365 image="columns.png" 434 onclick="configureColumns()"435 366 title="Columns…" 436 367 tooltip="Show, hide and re-order columns" 437 368 /> 438 369 <tbl:button 370 id="btnImport" 371 data-plugin-type="IMPORT" 439 372 image="import.png" 440 onclick="runPlugin('ImportItems')"441 373 title="Import…" 442 374 tooltip="Import data" … … 444 376 /> 445 377 <tbl:button 378 id="btnExport" 379 data-plugin-type="EXPORT" 446 380 image="export.png" 447 onclick="runPlugin('ExportItems')"448 381 title="Export…" 449 382 tooltip="Export data" … … 451 384 /> 452 385 <tbl:button 386 id="btnRunPlugin" 387 data-plugin-type="OTHER" 453 388 image="runplugin.png" 454 onclick="runPlugin('RunListPlugin')"455 389 title="Run plugin…" 456 390 tooltip="Run a plugin" … … 570 504 visible="<%=item.isShared()%>" 571 505 /> </tbl:header> 572 <tbl:cell column="name"><div class="link" 573 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 506 <tbl:cell column="name"><div 507 class="link table-item" 508 data-item-id="<%=itemId%>" 509 data-no-edit="<%=writePermission ? 0 : 1 %>" 510 tabindex="0" 574 511 title="<%=tooltip%>"><%=name%></div></tbl:cell> 575 512 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 728 665 729 666 <base:buttongroup subclass="dialogbuttons"> 730 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />731 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />732 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />667 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 668 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 669 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 733 670 </base:buttongroup> 734 671 -
trunk/www/lims/plates/view_plate.jsp
r6255 r6307 113 113 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 114 114 %> 115 <base:page title="<%=title%>" >116 <base:head scripts="tabcontrol .js,table.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">115 <base:page title="<%=title%>" id="view-page"> 116 <base:head scripts="tabcontrol-2.js,table.js,~plates.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css"> 117 117 <ext:scripts context="<%=jspContext%>" /> 118 118 <ext:stylesheets context="<%=jspContext%>" /> 119 <script>120 function editItem()121 {122 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);123 }124 function shareItem()125 {126 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=ShareItem&item_id=<%=itemId%>', 'SharePlate', 600, 400);127 }128 function deleteItem()129 {130 location.replace('index.jsp?ID=<%=ID%>&cmd=DeleteItem&item_id=<%=itemId%>');131 }132 function restoreItem()133 {134 location.replace('index.jsp?ID=<%=ID%>&cmd=RestoreItem&item_id=<%=itemId%>');135 }136 function deleteItemPermanently()137 {138 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted');139 }140 function itemDeleted()141 {142 Main.listItems('<%=ID%>', '<%=itemType.name()%>');143 }144 function showUsingItems()145 {146 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>);147 }148 function setOwner()149 {150 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=SetOwnerOfItem&item_id=<%=itemId%>', 'SetOwnerOfItem', 450, 300);151 }152 function runPlugin(cmd)153 {154 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);155 }156 function viewWells()157 {158 location.href = 'wells/index.jsp?ID=<%=ID%>&plate_id=<%=itemId%>';159 }160 function viewEvents()161 {162 location.href = 'events/index.jsp?ID=<%=ID%>&plate_id=<%=itemId%>';163 }164 function switchTab(tabControlId, tabId)165 {166 if (tabId == 'events')167 {168 viewEvents();169 }170 else if (tabId == 'wells')171 {172 viewWells();173 }174 else175 {176 TabControl.setActiveTab(tabControlId, tabId);177 }178 }179 </script>180 119 </base:head> 181 120 <base:body> … … 184 123 /><p:pathelement title="<%=HTML.encodeTags(plate.getName())%>" 185 124 /></p:path> 125 <div id="page-data" data-item-id="<%=itemId%>"></div> 186 126 187 127 <t:tabcontrol 188 128 id="main" 189 129 subclass="content mastertabcontrol" 190 active="<%=tab%>" switch="switchTab" remember="false">130 active="<%=tab%>"> 191 131 <t:tab id="properties" title="Properties"> 192 132 <div> … … 200 140 /> 201 141 <base:icon 142 id="btnDeletePermanently" 202 143 image="deleted.png" 203 onclick="deleteItemPermanently()"204 144 tooltip="This item has been flagged for deletion. Click to delete it now." 205 145 enabled="<%=deletePermanentlyPermission %>" 206 146 visible="<%=isRemoved%>" 207 147 /> 208 <base:icon image="used.png" 209 onclick="showUsingItems()" 148 <base:icon 149 id="btnUsingItems" 150 image="used.png" 210 151 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 211 152 visible="<%=isRemoved && isUsed%>" /> … … 214 155 <tbl:toolbar subclass="bottomborder"> 215 156 <tbl:button 157 id="btnEdit" 216 158 disabled="<%=!writePermission%>" 217 159 image="edit.png" 218 onclick="editItem()"219 160 title="Edit…" 220 161 tooltip="<%=writePermission ? "Edit this plate" : "You do not have permission to edit this plate"%>" 221 162 /> 222 163 <tbl:button 164 id="btnDelete" 223 165 disabled="<%=!deletePermission%>" 224 166 image="delete.png" 225 onclick="deleteItem()"226 167 title="Delete" 227 168 visible="<%=!plate.isRemoved()%>" … … 229 170 /> 230 171 <tbl:button 172 id="btnRestore" 231 173 disabled="<%=!writePermission%>" 232 174 image="restore.png" 233 onclick="restoreItem()"234 175 title="Restore" 235 176 visible="<%=plate.isRemoved()%>" … … 237 178 /> 238 179 <tbl:button 180 id="btnShare" 239 181 disabled="<%=!sharePermission%>" 240 182 image="share.png" 241 onclick="shareItem()"242 183 title="Share…" 243 184 tooltip="<%=sharePermission ? "Share this plate to other user, groups and projects" : "You do not have permission to share this plate"%>" 244 185 /> 245 186 <tbl:button 187 id="btnSetOwner" 246 188 disabled="<%=!setOwnerPermission%>" 247 189 image="take_ownership.png" 248 onclick="setOwner()"249 190 title="Set owner…" 250 191 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 251 192 /> 252 193 <tbl:button 194 id="btnImport" 253 195 image="import.png" 254 onclick="runPlugin('ImportItem')"196 data-plugin-type="IMPORT" 255 197 title="Import…" 256 198 tooltip="Import data" … … 258 200 /> 259 201 <tbl:button 260 image="export.png" 261 onclick="runPlugin('ExportItem')" 202 id="btnExport" 203 image="export.png" 204 data-plugin-type="EXPORT" 262 205 title="Export…" 263 206 tooltip="Export data" … … 265 208 /> 266 209 <tbl:button 267 image="runplugin.png" 268 onclick="runPlugin('RunPlugin')" 210 id="btnRunPlugin" 211 image="runplugin.png" 212 data-plugin-type="OTHER" 269 213 title="Run plugin…" 270 214 tooltip="Run a plugin" … … 275 219 <tbl:button 276 220 image="help.png" 277 onclick="<%="Main.openHelp('" + ID +"', 'plate.view.properties')"%>" 221 subclass="auto-init" 222 data-auto-init="help" 223 data-help-id="plate.view.properties" 278 224 title="Help…" 279 225 tooltip="Get help about this page" … … 491 437 492 438 <t:tab id="annotations" title="Annotations" 493 tooltip="View annotation values" clazz="white" 494 activate="AnnotationsList.loadOnce()"> 439 tooltip="View annotation values" clazz="white"> 495 440 <jsp:include page="../../common/annotations/list_frameset.jsp"> 496 441 <jsp:param name="item_type" value="<%=itemType.name()%>" /> … … 504 449 <t:tab id="history" title="Change history" 505 450 tooltip="Displays a log of all modifications made to this item" 506 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" 507 activate="History.loadOnce()"> 451 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 508 452 <jsp:include page="../../common/history/frameset.jsp"> 509 453 <jsp:param name="item_type" value="<%=itemType.name()%>" /> -
trunk/www/lims/plates/wells/list_wells.jsp
r6221 r6307 134 134 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 135 135 %> 136 <base:page title="<%=title%>" type="<%=mode.getPageType()%>" >137 <base:head scripts="table.js,tabcontrol .js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">136 <base:page title="<%=title%>" type="<%=mode.getPageType()%>" id="list-page"> 137 <base:head scripts="table.js,tabcontrol-2.js,~wells.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 var submitPage = 'index.jsp';142 var formId = 'wells';143 function editItem(itemId)144 {145 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);146 }147 function viewItem(itemId)148 {149 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);150 }151 function itemOnClick(evt, itemId)152 {153 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);154 }155 function configureColumns()156 {157 Table.configureColumns(formId);158 }159 function runPlugin(cmd)160 {161 Table.submitToPopup(formId, cmd, 750, 500);162 }163 function returnSelected()164 {165 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);166 window.close();167 }168 function switchTab(tabControlId, tabId)169 {170 if (tabId == 'properties' || tabId == 'annotations' || tabId == 'history')171 {172 location.href = '../index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=plateId%>&tab='+tabId;173 }174 else if (tabId == 'events')175 {176 location.href = '../events/index.jsp?ID=<%=ID%>&plate_id=<%=plateId%>';177 }178 else179 {180 TabControl.setActiveTab(tabControlId, tabId);181 }182 }183 function newReporterList()184 {185 Table.submitToPopup(formId, 'CreateReporterList', 600, 400);186 }187 </script>188 140 </base:head> 189 141 … … 197 149 id="main" 198 150 subclass="content mastertabcontrol" 199 active="wells" switch="switchTab">151 active="wells"> 200 152 <t:tab id="properties" title="Properties" /> 201 153 <t:tab id="annotations" title="Annotations" /> … … 419 371 > 420 372 <tbl:button 373 id="btnColumns" 421 374 image="columns.png" 422 onclick="configureColumns()"423 375 title="Columns…" 424 376 tooltip="Show, hide and re-order columns" 425 377 /> 426 378 <tbl:button 379 id="btnNewReporterList" 427 380 image="add.png" 428 onclick="newReporterList()"429 381 title="New reporter list…" 430 382 tooltip="Create a new reporter list from matching wells" … … 432 384 /> 433 385 <tbl:button 386 id="btnImport" 387 data-plugin-type="IMPORT" 434 388 image="import.png" 435 onclick="runPlugin('ImportItems')"436 389 title="Import…" 437 390 tooltip="Import data" … … 439 392 /> 440 393 <tbl:button 394 id="btnExport" 395 data-plugin-type="EXPORT" 441 396 image="export.png" 442 onclick="runPlugin('ExportItems')"443 397 title="Export…" 444 398 tooltip="Export data" … … 446 400 /> 447 401 <tbl:button 402 id="btnRunPlugin" 403 data-plugin-type="OTHER" 448 404 image="runplugin.png" 449 onclick="runPlugin('RunListPlugin')"450 405 title="Run plugin…" 451 406 tooltip="Run a plugin" … … 546 501 visible="<%=mode.hasIcons()%>" 547 502 > </tbl:header> 548 <tbl:cell column="row"><div class="link" 549 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 503 <tbl:cell column="row"><div 504 class="link table-item" 505 data-item-id="<%=itemId%>" 506 data-no-edit="<%=writePermission ? 0 : 1 %>" 507 tabindex="0" 550 508 title="<%=tooltip%>"><tbl:cellvalue value="<%=item.getRow()%>" /></div></tbl:cell> 551 509 <tbl:cell column="column"><tbl:cellvalue value="<%=item.getColumn()%>"/></tbl:cell> … … 670 628 671 629 <base:buttongroup> 672 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />673 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />674 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />630 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 631 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 632 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 675 633 </base:buttongroup> 676 634 -
trunk/www/lims/plates/wells/view_well.jsp
r6255 r6307 133 133 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 134 134 %> 135 <base:page title="<%=title%>" >136 <base:head scripts="table.js,tabcontrol .js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">135 <base:page title="<%=title%>" id="view-page"> 136 <base:head scripts="table.js,tabcontrol-2.js,~wells.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css"> 137 137 <ext:scripts context="<%=jspContext%>" /> 138 138 <ext:stylesheets context="<%=jspContext%>" /> 139 <script>140 function editItem()141 {142 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);143 }144 function runPlugin(cmd)145 {146 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&plate_id=<%=plateId%>&item_id=<%=itemId%>', 'RunPlugin'+cmd, 750, 500);147 }148 </script>149 139 </base:head> 150 140 <base:body> … … 156 146 /><p:pathelement title="<%="Well: "+rowFormatter.format(well.getRow())+columnFormatter.format(well.getColumn())%>" 157 147 /></p:path> 148 <div id="page-data" data-item-id="<%=itemId%>"></div> 158 149 159 150 <t:tabcontrol … … 169 160 <tbl:toolbar subclass="bottomborder"> 170 161 <tbl:button 162 id="btnEdit" 171 163 disabled="<%=!writePermission%>" 172 164 image="edit.png" 173 onclick="editItem()"174 165 title="Edit…" 175 166 tooltip="<%=writePermission ? "Edit this well" : "You do not have permission to edit this well"%>" 176 167 /> 177 168 <tbl:button 169 id="btnImport" 178 170 image="import.png" 179 onclick="runPlugin('ImportItem')"171 data-plugin-type="IMPORT" 180 172 title="Import…" 181 173 tooltip="Import data" … … 183 175 /> 184 176 <tbl:button 185 image="export.png" 186 onclick="runPlugin('ExportItem')" 177 id="btnExport" 178 image="export.png" 179 data-plugin-type="EXPORT" 187 180 title="Export…" 188 181 tooltip="Export data" … … 190 183 /> 191 184 <tbl:button 192 image="runplugin.png" 193 onclick="runPlugin('RunPlugin')" 185 id="btnRunPlugin" 186 image="runplugin.png" 187 data-plugin-type="OTHER" 194 188 title="Run plugin…" 195 189 tooltip="Run a plugin" … … 200 194 <tbl:button 201 195 image="help.png" 202 onclick="<%="Main.openHelp('" + ID +"', 'well.view.properties')"%>" 196 subclass="auto-init" 197 data-auto-init="help" 198 data-help-id="well.view.properties" 203 199 title="Help…" 204 200 tooltip="Get help about this page" … … 340 336 </t:tab> 341 337 <t:tab id="annotations" title="Annotations" 342 tooltip="View annotation values" clazz="white" 343 activate="AnnotationsList.loadOnce()"> 338 tooltip="View annotation values" clazz="white"> 344 339 <jsp:include page="../../../common/annotations/list_frameset.jsp"> 345 340 <jsp:param name="item_type" value="<%=itemType.name()%>" /> -
trunk/www/my_base/messages/list_messages.jsp
r6221 r6307 99 99 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 100 100 %> 101 <base:page title="<%=title==null ? "Messages" : title%>" type="<%=mode.getPageType()%>" >102 <base:head scripts="table.js " styles="table.css,toolbar.css">101 <base:page title="<%=title==null ? "Messages" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 102 <base:head scripts="table.js,~messages.js" styles="table.css,toolbar.css"> 103 103 <ext:scripts context="<%=jspContext%>" /> 104 104 <ext:stylesheets context="<%=jspContext%>" /> 105 <script>106 var submitPage = 'index.jsp';107 var formId = 'messages';108 function viewItem(itemId)109 {110 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);111 }112 function itemOnClick(evt, itemId)113 {114 viewItem(itemId);115 }116 function markAsRead()117 {118 var frm = document.forms[formId];119 if (Forms.numChecked(frm) == 0)120 {121 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');122 return;123 }124 frm.action = submitPage;125 frm.cmd.value = 'MarkAsRead';126 frm.submit();127 }128 function deleteItems()129 {130 var frm = document.forms[formId];131 if (Forms.numChecked(frm) == 0)132 {133 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');134 return;135 }136 frm.action = submitPage;137 frm.cmd.value = 'DeleteItems';138 frm.submit();139 }140 function restoreItems()141 {142 var frm = document.forms[formId];143 if (Forms.numChecked(frm) == 0)144 {145 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');146 return;147 }148 frm.action = submitPage;149 frm.cmd.value = 'RestoreItems';150 frm.submit();151 }152 function configureColumns()153 {154 Table.configureColumns(formId);155 }156 function runPlugin(cmd)157 {158 Table.submitToPopup(formId, cmd, 750, 500);159 }160 function returnSelected()161 {162 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);163 window.close();164 }165 </script>166 105 </base:head> 167 106 … … 260 199 > 261 200 <tbl:button 201 id="btnMarkAsRead" 262 202 image="message.png" 263 onclick="markAsRead()"264 203 title="Mark as read" 265 204 tooltip="Mark the selected messages as read" 266 205 /> 267 206 <tbl:button 207 id="btnDeleteItems" 268 208 image="delete.png" 269 onclick="deleteItems()"270 209 title="Delete" 271 210 tooltip="Delete the selected items" 272 211 /> 273 212 <tbl:button 213 id="btnRestoreItems" 274 214 image="restore.png" 275 onclick="restoreItems()"276 215 title="Restore" 277 216 tooltip="Restore the selected (deleted) items" 278 217 /> 279 218 <tbl:button 219 id="btnColumns" 280 220 image="columns.png" 281 onclick="configureColumns()"282 221 title="Columns…" 283 222 tooltip="Show, hide and re-order columns" 284 223 /> 285 224 <tbl:button 225 id="btnImport" 226 data-plugin-type="IMPORT" 286 227 image="import.png" 287 onclick="runPlugin('ImportItems')"288 228 title="Import…" 289 229 tooltip="Import data" … … 291 231 /> 292 232 <tbl:button 233 id="btnExport" 234 data-plugin-type="EXPORT" 293 235 image="export.png" 294 onclick="runPlugin('ExportItems')"295 236 title="Export…" 296 237 tooltip="Export data" … … 298 239 /> 299 240 <tbl:button 241 id="btnRunPlugin" 242 data-plugin-type="OTHER" 300 243 image="runplugin.png" 301 onclick="runPlugin('RunListPlugin')"302 244 title="Run plugin…" 303 245 tooltip="Run a plugin" … … 414 356 visible="<%=item.isRemoved()%>" 415 357 /> </tbl:header> 416 <tbl:cell column="name"><div class="link" onclick="itemOnClick(event, <%=itemId%>)" 358 <tbl:cell column="name"><div 359 class="link table-item" 360 data-item-id="<%=itemId%>" 361 data-no-edit="1" 362 tabindex="0" 417 363 title="<%=tooltip%>"><%=name%></div></tbl:cell> 418 364 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 446 392 447 393 <base:buttongroup subclass="dialogbuttons"> 448 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />449 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />450 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />394 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 395 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 396 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 451 397 </base:buttongroup> 452 398 -
trunk/www/my_base/messages/view_message.jsp
r6142 r6307 108 108 final boolean deletePermanentlyPermission = deletePermission && !isUsed; 109 109 %> 110 111 <base:page type="popup" title="<%=title%>"> 112 <base:head scripts="tabcontrol.js" styles="tabcontrol.css,progressbar.css"> 113 <script> 114 function deleteItemPermanently() 115 { 116 Main.deleteItemPermanently('<%=ID%>', true, '<%=itemType.name()%>', <%=itemId%>, '&callback=itemDeleted'); 117 } 118 function itemDeleted() 119 { 120 location.href = getRoot() + 'common/close_popup.jsp?ID=<%=ID%>&refresh_opener=1&wait=0'; 121 } 122 function showUsingItems() 123 { 124 Main.showUsingItems('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>); 125 } 126 </script> 127 </base:head> 128 <base:body> 129 110 <base:page type="popup" title="<%=title%>" id="view-page"> 111 <base:head scripts="~messages.js" /> 112 <base:body> 130 113 <h1><%=title%> <base:help tabcontrol="main" /></h1> 114 <div id="page-data" data-item-id="<%=itemId%>"></div> 131 115 132 116 <div class="content bottomborder"> … … 140 124 <div class="itemstatus"> 141 125 <base:icon 126 id="btnDeletePermanently" 142 127 image="deleted.png" 143 onclick="<%=deletePermanentlyPermission ? "deleteItemPermanently()" : null%>"128 data-notify="btnDeletePermanently" 144 129 tooltip="<%=deletePermanentlyPermission ? "Permanently delete this item" : null%>" 130 enabled="<%=deletePermanentlyPermission %>" 145 131 visible="<%=isRemoved%>"> This item has been flagged for deletion<br></base:icon> 146 <base:icon image="used.png" 147 onclick="showUsingItems()" 132 <base:icon 133 id="btnUsingItems" 134 image="used.png" 148 135 tooltip="Show the items that are using this one" 149 136 visible="<%=isUsed%>"> This item is used by other items and can't be permanently deleted<br></base:icon> … … 184 171 </div> 185 172 <base:buttongroup subclass="dialogbuttons"> 186 <base:button onclick="window.close()" title="Close" />173 <base:button id="close" title="Close" /> 187 174 </base:buttongroup> 188 175 -
trunk/www/my_base/projects/items/list_items.jsp
r6221 r6307 125 125 "net.sf.basedb.clients.web.listcolumn.projectitems"); 126 126 %> 127 <base:page >128 <base:head scripts="table.js,tabcontrol .js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">127 <base:page id="list-page"> 128 <base:head scripts="table.js,tabcontrol-2.js,~items.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> 129 129 <ext:scripts context="<%=jspContext%>" /> 130 130 <ext:stylesheets context="<%=jspContext%>" /> 131 <script>132 var submitPage = 'index.jsp';133 var formId = 'items';134 function deleteItems()135 {136 var frm = document.forms[formId];137 var numChecked = Forms.numChecked(frm, /item:/);138 if (numChecked == 0)139 {140 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');141 return;142 }143 frm.action = submitPage;144 frm.cmd.value = 'DeleteItems';145 frm.submit();146 }147 function restoreItems()148 {149 var frm = document.forms[formId];150 if (Forms.numChecked(frm, /item:/) == 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 = 'RestoreItems';157 frm.submit();158 }159 function setOwner()160 {161 Table.setOwnerOfItems(formId, /item:/);162 }163 function shareItems()164 {165 Table.shareItems(formId, /item:/);166 }167 function configureColumns()168 {169 Table.configureColumns(formId);170 }171 function setToActive()172 {173 Main.openPopup('../set_active.jsp?ID=<%=ID%>&project_id=<%=projectId%>', 'ActivateProject', 300, 200);174 }175 function switchTab(tabControlId, tabId)176 {177 if (tabId == 'properties')178 {179 location.href = '../index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=projectId%>&tab='+tabId;180 }181 else182 {183 TabControl.setActiveTab(tabControlId, tabId);184 }185 }186 </script>187 131 </base:head> 188 132 … … 192 136 /><p:pathelement title="<%=HTML.encodeTags(project.getName())%>" 193 137 /></p:path> 138 <div id="page-data" data-project-id="<%=projectId%>"></div> 194 139 195 140 <t:tabcontrol 196 141 id="main" 197 142 subclass="mastertabcontrol content" 198 active="items" switch="switchTab">143 active="items"> 199 144 <t:tab id="properties" title="Properties" /> 200 145 … … 270 215 <tbl:toolbar subclass="bottomborder"> 271 216 <tbl:button 217 id="btnDeleteItems" 272 218 image="delete.png" 273 onclick="deleteItems()"274 219 title="Delete" 275 220 tooltip="Delete the selected items" 276 221 /> 277 222 <tbl:button 223 id="btnRestoreItems" 278 224 image="restore.png" 279 onclick="restoreItems()"280 225 title="Restore" 281 226 tooltip="Restore the selected items" 282 227 /> 283 228 <tbl:button 229 id="btnShareItems" 284 230 image="share.png" 285 onclick="shareItems()"286 231 title="Share…" 287 232 tooltip="Share the selected items" 288 233 /> 289 234 <tbl:button 235 id="btnSetOwner" 290 236 image="take_ownership.png" 291 onclick="setOwner()"292 237 title="Set owner…" 293 238 tooltip="Change owner of the selected items" 294 239 /> 295 240 <tbl:button 241 id="btnColumns" 296 242 image="columns.png" 297 onclick="configureColumns()"298 243 title="Columns…" 299 244 tooltip="Show, hide and re-order columns" -
trunk/www/my_base/projects/list_projects.jsp
r6221 r6307 95 95 ExtensionsInvoker columnsInvoker = ListColumnUtil.useExtensions(jspContext); 96 96 %> 97 <base:page title="<%=title==null ? "Projects" : title%>" type="<%=mode.getPageType()%>" >98 <base:head scripts="table.js " styles="table.css,toolbar.css">97 <base:page title="<%=title==null ? "Projects" : title%>" type="<%=mode.getPageType()%>" id="list-page"> 98 <base:head scripts="table.js,~projects.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 = 'projects';104 function newItem()105 {106 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', 0, true);107 }108 function editItem(itemId)109 {110 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, true);111 }112 function viewItem(itemId)113 {114 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false);115 }116 function itemOnClick(evt, itemId)117 {118 Table.itemOnClick(formId, evt, itemId, '<%=mode.getName()%>', viewItem, editItem, returnSelected);119 }120 function deleteItems()121 {122 var frm = document.forms[formId];123 if (Forms.numChecked(frm) == 0)124 {125 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');126 return;127 }128 frm.action = submitPage;129 frm.cmd.value = 'DeleteItems';130 frm.submit();131 }132 function restoreItems()133 {134 var frm = document.forms[formId];135 if (Forms.numChecked(frm) == 0)136 {137 Forms.showNotification('check.uncheck', 'Please select at least one item in the list', null, 'pointer-left');138 return;139 }140 frm.action = submitPage;141 frm.cmd.value = 'RestoreItems';142 frm.submit();143 }144 function setOwner()145 {146 Table.setOwnerOfItems(formId);147 }148 function configureColumns()149 {150 Table.configureColumns(formId);151 }152 function runPlugin(cmd)153 {154 Table.submitToPopup(formId, cmd, 750, 500);155 }156 function returnSelected()157 {158 Table.returnSelected(formId, <%=callback != null ? "window.opener."+callback : "null" %>);159 window.close();160 }161 function setActive(projectId)162 {163 Main.openPopup('set_active.jsp?ID=<%=ID%>&project_id='+projectId, 'ActivateProject', 300, 200);164 }165 </script>166 101 </base:head> 167 102 … … 265 200 > 266 201 <tbl:button 202 id="btnNewItem" 267 203 disabled="<%=!createPermission%>" 268 204 image="new.png" 269 onclick="newItem()"270 205 title="New…" 271 206 tooltip="<%=createPermission ? "Create new project" : "You do not have permission to create projects"%>" 272 207 /> 273 208 <tbl:button 209 id="btnDeleteItems" 274 210 image="delete.png" 275 onclick="deleteItems()"276 211 title="Delete" 277 212 tooltip="Delete the selected items" 278 213 /> 279 214 <tbl:button 215 id="btnRestoreItems" 280 216 image="restore.png" 281 onclick="restoreItems()"282 217 title="Restore" 283 218 tooltip="Restore the selected (deleted) items" 284 219 /> 285 220 <tbl:button 221 id="btnSetOwner" 286 222 image="take_ownership.png" 287 onclick="setOwner()"288 223 title="Set owner…" 289 224 tooltip="Change owner of the selected items" 290 225 /> 291 226 <tbl:button 227 id="btnColumns" 292 228 image="columns.png" 293 229 onclick="configureColumns()" … … 296 232 /> 297 233 <tbl:button 234 id="btnImport" 235 data-plugin-type="IMPORT" 298 236 image="import.png" 299 onclick="runPlugin('ImportItems')"300 237 title="Import…" 301 238 tooltip="Import data" … … 303 240 /> 304 241 <tbl:button 242 id="btnExport" 243 data-plugin-type="EXPORT" 305 244 image="export.png" 306 onclick="runPlugin('ExportItems')"307 245 title="Export…" 308 246 tooltip="Export data" … … 310 248 /> 311 249 <tbl:button 250 id="btnRunPlugin" 251 data-plugin-type="OTHER" 312 252 image="runplugin.png" 313 onclick="runPlugin('RunListPlugin')"314 253 title="Run plugin…" 315 254 tooltip="Run a plugin" … … 420 359 visible="<%=item.isRemoved()%>" 421 360 /> </tbl:header> 422 <tbl:cell column="name"><div class="link" 423 onclick="itemOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 361 <tbl:cell column="name"><div 362 class="link table-item" 363 data-item-id="<%=itemId%>" 364 data-no-edit="<%=writePermission ? 0 : 1 %>" 365 tabindex="0" 424 366 title="<%=tooltip%>"><%=name%></div></tbl:cell> 425 367 <tbl:cell column="id"><%=item.getId()%></tbl:cell> … … 441 383 <tbl:cell column="entryDate" value="<%=item.getEntryDate()%>" /> 442 384 <tbl:cell column="description"><%=HTML.encodeTags(item.getDescription())%></tbl:cell> 443 <tbl:cell column="actions">< a href="javascript:setActive(<%=itemId%>)">Set active</a></tbl:cell>385 <tbl:cell column="actions"><span class="link auto-init" data-auto-init="set-active" data-item-id="<%=itemId%>">Set active</span></tbl:cell> 444 386 <tbl:cell column="permission"><%=PermissionUtil.getShortPermissions(item)%></tbl:cell> 445 387 <tbl:xt-cells dc="<%=dc%>" item="<%=item%>"> … … 467 409 468 410 <base:buttongroup subclass="dialogbuttons"> 469 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />470 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />471 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />411 <base:button id="btnOk" title="Ok" visible="<%=mode.hasOkButton()%>" /> 412 <base:button id="close" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 413 <base:button id="close" title="Close" visible="<%=mode.hasCloseButton()%>" /> 472 414 </base:buttongroup> 473 415 -
trunk/www/my_base/projects/set_active.jsp
r6136 r6307 102 102 } 103 103 %> 104 <base:page type="popup" title="<%=title%>"> 105 <base:head> 106 <script> 107 function reloadAndClose() 108 { 109 window.opener.location.reload(); 110 setTimeout(closeWindow, 500); 111 } 112 function closeWindow() 113 { 114 window.close(); 115 } 116 </script> 117 </base:head> 118 <base:body onload="reloadAndClose()"> 104 <base:page type="popup" title="<%=title%>" id="set-active"> 105 <base:head scripts="~projects.js" /> 106 <base:body> 119 107 <h1><%=title %></h1> 120 108 <div class="content"> … … 125 113 126 114 <base:buttongroup subclass="dialogbuttons"> 127 <base:button onclick="window.close();" title="Ok" />115 <base:button id="close" title="Ok" /> 128 116 </base:buttongroup> 129 117 </base:body> -
trunk/www/my_base/projects/view_project.jsp
r6142 r6307 98 98 ExtensionsInvoker invoker = ToolbarUtil.useExtensions(jspContext); 99 99 %> 100 <base:page title="<%=title%>" >101 <base:head scripts="table.js,tabcontrol .js" styles="table.css,toolbar.css,headertabcontrol.css,path.css">100 <base:page title="<%=title%>" id="view-page"> 101 <base:head scripts="table.js,tabcontrol-2.js,~projects.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> 102 102 <ext:scripts context="<%=jspContext%>" /> 103 103 <ext:stylesheets context="<%=jspContext%>" /> 104 <script>105 function editItem()106 {107 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', <%=itemId%>, true);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 setToActive()138 {139 Main.openPopup('set_active.jsp?ID=<%=ID%>&project_id=<%=itemId%>', 'ActivateProject', 300, 200);140 }141 function viewItems()142 {143 location.href = 'items/index.jsp?ID=<%=ID%>&project_id=<%=itemId%>';144 }145 function switchTab(tabControlId, tabId)146 {147 if (tabId == 'items')148 {149 viewItems();150 }151 else152 {153 TabControl.setActiveTab(tabControlId, tabId);154 }155 }156 </script>157 104 </base:head> 158 105 <base:body> … … 161 108 /><p:pathelement title="<%=HTML.encodeTags(project.getName())%>" 162 109 /></p:path> 110 <div id="page-data" data-item-id="<%=itemId%>"></div> 163 111 164 112 <t:tabcontrol 165 113 id="main" 166 114 subclass="content mastertabcontrol" 167 active="<%=tab%>" switch="switchTab">115 active="<%=tab%>"> 168 116 <t:tab id="properties" title="Properties"> 169 117 <div> … … 172 120 <th class="itemstatus"> 173 121 <base:icon 122 id="btnDeletePermanently" 174 123 image="deleted.png" 175 onclick="deleteItemPermanently()"176 124 tooltip="This item has been flagged for deletion. Click to delete it now." 177 125 enabled="<%=deletePermanentlyPermission %>" 178 126 visible="<%=isRemoved%>" 179 127 /> 180 <base:icon image="used.png" 181 onclick="showUsingItems()" 128 <base:icon 129 id="btnUsingItems" 130 image="used.png" 182 131 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 183 132 visible="<%=isRemoved && isUsed%>" /> … … 186 135 <tbl:toolbar subclass="bottomborder"> 187 136 <tbl:button 137 id="btnEdit" 188 138 disabled="<%=!writePermission%>" 189 139 image="edit.png" 190 onclick="editItem()"191 140 title="Edit…" 192 141 tooltip="<%=writePermission ? "Edit this project" : "You do not have permission to edit this project"%>" 193 142 /> 194 143 <tbl:button 144 id="btnDelete" 195 145 disabled="<%=!deletePermission%>" 196 146 image="delete.png" 197 onclick="deleteItem()"198 147 title="Delete" 199 148 visible="<%=!project.isRemoved()%>" … … 201 150 /> 202 151 <tbl:button 152 id="btnRestore" 203 153 disabled="<%=!writePermission%>" 204 154 image="restore.png" 205 onclick="restoreItem()"206 155 title="Restore" 207 156 visible="<%=project.isRemoved()%>" … … 209 158 /> 210 159 <tbl:button 160 id="btnSetOwner" 211 161 disabled="<%=!setOwnerPermission%>" 212 162 image="take_ownership.png" 213 onclick="setOwner()"214 163 title="Set owner…" 215 164 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 216 165 /> 217 166 <tbl:button 218 onclick="setToActive()"167 id="btnSetActive" 219 168 image="bullet.png" 220 169 title="Set active" … … 222 171 /> 223 172 <tbl:button 173 id="btnImport" 224 174 image="import.png" 225 onclick="runPlugin('ImportItem')"175 data-plugin-type="IMPORT" 226 176 title="Import…" 227 177 tooltip="Import data" … … 229 179 /> 230 180 <tbl:button 231 image="export.png" 232 onclick="runPlugin('ExportItem')" 181 id="btnExport" 182 image="export.png" 183 data-plugin-type="EXPORT" 233 184 title="Export…" 234 185 tooltip="Export data" … … 236 187 /> 237 188 <tbl:button 238 image="runplugin.png" 239 onclick="runPlugin('RunPlugin')" 189 id="btnRunPlugin" 190 image="runplugin.png" 191 data-plugin-type="OTHER" 240 192 title="Run plugin…" 241 193 tooltip="Run a plugin" … … 246 198 <tbl:button 247 199 image="help.png" 248 onclick="<%="Main.openHelp('" + ID +"', 'project.view.properties')"%>" 200 subclass="auto-init" 201 data-auto-init="help" 202 data-help-id="project.view.properties" 249 203 title="Help…" 250 204 tooltip="Get help about this page"
Note: See TracChangeset
for help on using the changeset viewer.