Changeset 594 for trunk/web-app


Ignore:
Timestamp:
Jun 21, 2010, 8:42:50 AM (10 years ago)
Author:
vinlud
Message:

Dynamic simple Assays tab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/js/simpleQuery.js

    r570 r594  
    2323    $('#addCompound').click(function() {
    2424        var compoundGroup = document.getElementById('compoundGroup');
    25 
    2625        var newCompoundDiv = document.createElement('div');
    2726        newCompoundDiv.setAttribute('id', 'compoundRow' + compoundCounter);
    2827
    29         newCompoundDiv.innerHTML = '<div class="description">Compound</div> <div class="input"><input type="text" name="compound" value=""></div> <div class="description">Value</div> <div class="input"><input id="compoundValue' + compoundCounter + '" type="text"></div>';
     28        var newCompoundRowDiv1 = document.createElement('div');
     29        newCompoundRowDiv1.setAttribute('class', 'description');
     30        newCompoundRowDiv1.innerHTML = "Compound";
     31        newCompoundDiv.appendChild(newCompoundRowDiv1);
     32
     33        var newCompoundRowDiv2 = document.createElement('div');
     34        newCompoundRowDiv2.setAttribute('class', 'input');
     35        newCompoundRowDiv2.innerHTML = '<input type="text" name="sa_compound" value="">';
     36        newCompoundDiv.appendChild(newCompoundRowDiv2);
     37
     38        var newCompoundRowDiv3 = document.createElement('div');
     39        newCompoundRowDiv3.setAttribute('class', 'description');
     40        newCompoundRowDiv3.innerHTML = "Value";
     41        newCompoundDiv.appendChild(newCompoundRowDiv3);
     42
     43        var newCompoundRowDiv4 = document.createElement('div');
     44        newCompoundRowDiv4.setAttribute('class', 'input');
     45        newCompoundRowDiv4.innerHTML = "<input type='text' name='sa_value' value=''>";
     46        newCompoundDiv.appendChild(newCompoundRowDiv4);
    3047
    3148        compoundGroup.appendChild(newCompoundDiv);
     
    3956          var transcriptomeGroup = document.getElementById('transcriptomeGroup');
    4057          var newTranscriptomeDiv = document.createElement('div');
    41 
    4258          newTranscriptomeDiv.setAttribute('id', 'transcriptomeRow' + transcriptomeCounter);
    4359
     
    5975          var newTranscriptomeRowDiv4 = document.createElement('div');
    6076          newTranscriptomeRowDiv4.setAttribute('class', 'input');
    61           var newSelectBox = document.getElementById('regulation');
     77          var newSelectBox = document.getElementById('regulationInput');
    6278          newTranscriptomeRowDiv4 = newSelectBox.cloneNode(true);
    6379          newTranscriptomeRowDiv4.setAttribute('id', 'regulation' + transcriptomeCounter);
Note: See TracChangeset for help on using the changeset viewer.