Skip to content

Commit 08e8a54

Browse files
committed
-> Fix for single-series download: do not supply any filters in a single-series download as they're not relevant
1 parent befd1da commit 08e8a54

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

static/js/cohorts/export-manifest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ require([
201201

202202
let filt_str=$('#export-manifest-form').find('input[name="filters"]').val()
203203
let filters= new Object();
204-
if (filt_str.length>0){
204+
if (filt_str.length>0 && button.hasClass('study-export')){
205205
filters = JSON.parse(filt_str)
206206
}
207207

static/js/tables.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -77,36 +77,13 @@ require([
7777

7878
define(['cartutils','filterutils','tippy','jquery', 'base'], function(cartutils, filterutils, tippy, $, base) {
7979

80-
81-
8280
$('#proj_table, #cases_tab, #studies_tab, #series_tab, #cart-table').on('preInit.dt', function(){
8381
window.show_spinner();
8482
});
85-
8683
$('#proj_table, #cases_tab, #studies_tab, #series_tab, #cart-table').on('draw.dt', function(){
8784
window.hide_spinner();
8885
});
8986

90-
/*
91-
92-
// TODO: Adjust these to indicate cart update
93-
$('#proj_table, #cases_tab, #studies_tab, #series_tab').on('shopping-cart:update-started', '.shopping-cart-holder', function(){
94-
window.show_spinner();
95-
});
96-
97-
$('#proj_table, #cases_tab, #studies_tab, #series_tab').on('shopping-cart:update-complete', '.shopping-cart-holder', function(){
98-
window.hide_spinner();
99-
});
100-
101-
$(document).on('study-map:update-started', function(){
102-
window.show_spinner();
103-
});
104-
$(document).on('study-map:update-complete', function(){
105-
window.hide_spinner();
106-
});
107-
108-
*/
109-
11087
// Update the rows in the Projects Table, clear the other tables.
11188
window.updateTablesAfterFilter = function (collFilt, collectionsData, collectionStats,cartStats){
11289

0 commit comments

Comments
 (0)