Changeset 1790


Ignore:
Timestamp:
Dec 17, 2012, 11:37:53 AM (7 years ago)
Author:
Nicklas Nordborg
Message:

References #424: Select RNA items for library preparation

Added a 'switch' button that can be used when two wells are selected to switch the RNA between them.

Location:
extensions/net.sf.basedb.reggie/branches/ticket-422/resources
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/branches/ticket-422/resources/libprep/select_rna.jsp

    r1789 r1790  
    851851}
    852852
     853/*
     854  If exactly two wells have been selected, switch the RNA in them.
     855*/
     856function switchSelected()
     857{
     858  var wells = Plate.getSelected();
     859
     860  if (wells.length != 2)
     861  {
     862    alert('Exactly 2 wells must be selected');
     863    return;
     864  }
     865
     866  var rna0 = wells[0].rna;
     867  var rna1 = wells[1].rna;
     868 
     869  wells[0].setRna(rna1);
     870  wells[1].setRna(rna0);
     871  Plate.paint(wells);
     872}
    853873
    854874/**
     
    14641484          onclick="pasteToSelected()"
    14651485          tooltip="Paste RNA into selected wells"
     1486        />
     1487        <tbl:button
     1488          title="Switch"
     1489          image="<%=home+"/images/switch.png"%>"
     1490          onclick="switchSelected()"
     1491          tooltip="Switch the selected wells (if exactly two)"
    14661492        />
    14671493      </tbl:toolbar>
Note: See TracChangeset for help on using the changeset viewer.