Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topic/fix accessions results to list #5260

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions mason/search/stocks.mas
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ my $breeding_programs_select = simple_selectbox_html(

<div class="panel panel-default">
<div class="panel-body">
<div id="stock_search_results_div" style="overflow:scroll" >
<div id="stock_search_results_div">
<table id="stock_search_results" width="100%" class="table table-hover table-striped">
<thead>
<tr>
Expand All @@ -280,7 +280,7 @@ my $breeding_programs_select = simple_selectbox_html(

<div class="panel panel-default">
<div class="panel-body">
<&| /page/info_section.mas, title => 'Copy Results to a List', collapsible=>1, collapsed=>0, subtitle=>'<i>Copy the stock names currently showing in the search results table to a new or exisiting list</i>'&>
<&| /page/info_section.mas, title => 'Copy Results to a List', collapsible=>1, collapsed=>0, subtitle=>'<i>Copy the stock names currently showing in the search results table to a new or exisiting list. Use "Show All entries" to capture all results.</i>'&>
<br>
<div style="text-align:right" id="results_to_list_menu"></div>
<div id="search_result_names" style="display: none;"></div>
Expand Down Expand Up @@ -453,7 +453,6 @@ jQuery(document).ready(function () {
addToListMenu('results_to_list_menu', 'search_result_names', {
listType: jQuery('#stock_type_select option:selected').text()+'s' || 'null'
});

});

jQuery('#submit_stock_search').click( function() {
Expand Down Expand Up @@ -555,7 +554,12 @@ function _load_stock_search_results(stock_type, editable_stockprops_search, stoc
'ordering' : false,
'processing': true,
'serverSide': true,
'lengthMenu': [10,20,50,100,1000,5000],
'lengthMenu': [
[10,20,50,100,1000,1000000000000000],
[10,20,50,100,1000,'All']
],
'fixedFooter' : true,
'scrollY' : '350px',
'ajax': { 'url': '/ajax/search/stocks',
'data': function(d) {
d.any_name = jQuery('#any_name').val();
Expand Down
Loading