Changeset 4619


Ignore:
Timestamp:
Oct 30, 2008, 2:35:53 PM (13 years ago)
Author:
Nicklas Nordborg
Message:

References #1129: Filtering of child/parent items in table listing

Remove debug code belonging to #1145 (Raw data batch import) that was checked in by accident in [4613].

Location:
trunk/www/views/experiments
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/views/experiments/index.jsp

    r4613 r4619  
    341341    redirect = "../../common/plugin/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&main_type=OTHER&title=Run+plugin";
    342342  }
    343   else if ("DeleteAllRawData".equals(cmd))
    344   {
    345     dc = sc.newDbControl();
    346     ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
    347     Experiment exp = Experiment.getById(dc, cc.getId());
    348     List<RawBioAssay> all = new ArrayList<RawBioAssay>(exp.getRawBioAssays().list(dc));
    349     for (RawBioAssay rba : all)
    350     {
    351       exp.removeRawBioAssay(rba);
    352     }
    353     dc.commit();
    354    
    355     dc = sc.newDbControl();
    356     for (RawBioAssay rba : all)
    357     {
    358       rba = RawBioAssay.getById(dc, rba.getId());
    359       rba.deleteRawData();
    360     }
    361     dc.commit();
    362    
    363     dc = sc.newDbControl();
    364     exp = Experiment.getById(dc, cc.getId());
    365     for (RawBioAssay rba : all)
    366     {
    367       exp.addRawBioAssay(rba);
    368     }
    369     dc.commit();
    370     redirect = viewPage;
    371   }
    372343  else
    373344  {
  • trunk/www/views/experiments/view_experiment.jsp

    r4613 r4619  
    148148      location.href = '<%=root%>/analyze/index.jsp?ID=<%=ID%>&experiment_id=<%=itemId%>';
    149149    }
    150     function deleteAllRaw()
    151     {
    152       location.href = 'index.jsp?ID=<%=ID%>&cmd=DeleteAllRawData&item_id=<%=itemId%>';
    153     }
    154150    function viewBioAssaySets()
    155151    {
     
    275271        title="Help&hellip;"
    276272        tooltip="Get help about this page"
    277       />
    278       <tbl:button
    279         onclick="deleteAllRaw()"
    280         title="Delete all raw data"
    281273      />
    282274      </tbl:toolbar>
Note: See TracChangeset for help on using the changeset viewer.