Changeset 1928


Ignore:
Timestamp:
Apr 12, 2013, 11:15:49 AM (9 years ago)
Author:
Nicklas Nordborg
Message:

References #424: Select RNA items for library preparation

Display 'loading...' animations when loading information about auto-selected RNA or RNA from a file.

Location:
extensions/net.sf.basedb.reggie/trunk/resources/libprep
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/resources/libprep/auto_select_rna.jsp

    r1889 r1928  
    2727<base:page type="popup" title="<%=title%>">
    2828<base:head>
     29  <link rel="stylesheet" type="text/css" href="../css/reggie.css">
     30  <script language="JavaScript" src="../reggie.js" type="text/javascript" charset="UTF-8"></script>
    2931
    3032<script>
     
    3638  if (frm.flag.checked) options.flag = 1;
    3739  if (frm.reProcess.checked) options.reProcess = 1;
    38   window.opener.autoSelect(options);
    39   window.close();
     40  try
     41  {
     42    showLoadingAnimation('Finding RNA. Please wait...');
     43    window.opener.autoSelect(options);
     44    window.close();
     45  }
     46  finally
     47  {
     48    hideLoadingAnimation();
     49  }
    4050}
    4151</script>
    42 
     52<style>
     53div#loading
     54{
     55  text-align: center;
     56  margin-top: 2em;
     57}
     58</style>
    4359</base:head>
    4460<base:body>
     
    7288      <th></th>
    7389      <td>
     90        <div class="loading" id="loading" style="display: none;">
     91        <table>
     92        <tr>
     93          <td><img src="../images/loading.gif"></td>
     94          <td id="loading.msg">Please wait...</td>
     95        </tr>
     96        </table>
     97      </div>
    7498       
    7599      </td>
  • extensions/net.sf.basedb.reggie/trunk/resources/libprep/select_file.jsp

    r1865 r1928  
    3838 
    3939  var reader = new FileReader();
    40  
    4140  reader.onload = rnaFileLoaded;
    4241  reader.readAsText(file);
     42 
     43  showLoadingAnimation('Loading RNA from file \'' + file.name + '\'...');
    4344}
    4445
     
    5455    alert(ex);
    5556  }
     57  finally
     58  {
     59    hideLoadingAnimation();
     60  }
    5661}
    5762
    5863</script>
    5964<style>
    60 
     65#loading
     66{
     67  text-align: center;
     68  background-color: #FFFFFF;
     69  margin-right: 2em;
     70}
    6171</style>
    6272</base:head>
     
    8898      </ul>
    8999     
     100      <div class="loading" id="loading" style="display: none;">
     101        <table>
     102        <tr>
     103          <td><img src="../images/loading.gif"></td>
     104          <td id="loading.msg">Please wait...</td>
     105        </tr>
     106        </table>
     107      </div>
     108     
    90109    </div>
    91110  </div>
Note: See TracChangeset for help on using the changeset viewer.