Merge pull request #4106 from solgenomics/topic/wishlist
[sgn.git] / mason / stock / direct_genotypes.mas
blobc14ddc117931ffe7b18e22e7674fe0cc6ae5a884
1 <%args>
2 $stock_id
3 $map_html => undef
4 </%args>
6 % print $map_html;
8 <table class="table table-hover table-bordered" id="stock_direct_genotypes_datatable">
9     <thead>
10         <tr>
11             <th>Genotyping Data Project Name</th>
12             <th>Genotyping Data Project Description</th>
13             <th>Protocol Name</th>
14             <th>Genotype Description</th>
15             <th>Download</th>
16         </tr>
17     </thead>
18 </table>
20 <script>
22 jQuery(document).ready(function () {
24     jQuery('#stock_genotypes_section_onswitch').one("click", function() {
25         var stock_genotypes_table = jQuery('#stock_direct_genotypes_datatable').DataTable({
26             'destroy' : true,
27             'searching' : false,
28             'ordering'  : false,
29             'processing': true,
30             'serverSide': true,
31             "scrollX": true,
32             'ajax': '/stock/<% $stock_id %>/datatables/genotype_data'
33         });
34     });
36 });
38 </script>