Skip to content

Commit 76bccb7

Browse files
committed
Merge branch 'master' of https://github.com/ImagingDataCommons/IDC-WebApp into idc-test
2 parents a9f252d + 70a71cd commit 76bccb7

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

shell/vagrant-set-env.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ echo 'export SECURE_LOCAL_PATH=../parentDir/secure_files/idc/' | tee -a /home/va
44
echo 'export DJANGO_SETTINGS_MODULE=idc.settings' | tee -a /home/vagrant/.bash_profile
55
source /home/vagrant/.bash_profile
66
chmod +x /home/vagrant/www/shell/python-su.sh
7-
sudo ln -s /home/vagrant/www /vagrant
7+
if [[ ! -d /vagrant ]]; then
8+
sudo ln -s /home/vagrant/www /vagrant
9+
fi

static/js/cohorts/export-manifest.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@ require([
107107

108108
var update_export_modal_for_cart = function(partitions, filtergrp_list, mxstudies=0, mxseries=0){
109109
is_cohort = false;
110+
let export_modal = $('#export-manifest-modal');
110111
let export_form = $('#export-manifest-form');
111112
var name_base='';
112-
$('.modal-title').text("Export Cart Manifest");
113+
export_modal.find('.modal-title').text("Export Cart Manifest");
113114
export_form.append('<input type="hidden" name="from_cart">')
114115
export_form.find('input[name="from_cart"]').val("True");
115116
if(filtergrp_list !== null && filtergrp_list !== undefined && filtergrp_list.length > 0) {
@@ -157,7 +158,7 @@ require([
157158

158159
$('.filter-tab.manifest-file').show();
159160
$('.filter-tab.manifest-bq').show();
160-
$('.modal-title').text('Export Manifest');
161+
export_modal.find('.modal-title').text('Export Manifest');
161162
}
162163

163164
const update_export_modal_for_mini = function(button){
@@ -235,15 +236,16 @@ require([
235236
});
236237

237238
$('#export-manifest-modal').on('hidden.bs.modal', function() {
238-
$('.manifest-file').show();
239-
$('.manifest-bq').show();
239+
let export_modal = $('#export-manifest-modal');
240+
export_modal.find('.manifest-file').show();
241+
export_modal.find('.manifest-bq').show();
240242
$('#download-idc-index').show();
241-
$('.header-fields-container').show();
242-
$('.idc-index-loc-type').show();
243-
$('.download-manifest-text').show();
243+
export_modal.find('.header-fields-container').show();
244+
export_modal.find('.idc-index-loc-type').show();
245+
export_modal.find('.download-manifest-text').show();
244246
$('#s5cmd-header-fields').find('input[value="cohort_name"]').parent().show();
245247
$('#s5cmd-header-fields').find('input[value="user_email"]').parent().show();
246-
$('.modal-title').text('Export Manifest');
248+
export_modal.find('.modal-title').text('Export Manifest');
247249
$('#manifest-source').text('manifest');
248250
});
249251

static/js/tables.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,12 +2081,12 @@ define(['cartutils','filterutils','tippy','jquery', 'base'], function(cartutils,
20812081
idsArr.push(ids);
20822082

20832083
if (rowsAdded) {
2084-
$(this).find('.fa-caret-right').addClass('is-hidden');
2085-
$(this).find('.fa-caret-down').removeClass('is-hidden');
2084+
$(this).find('.expansion-toggle .fa-caret-right').addClass('is-hidden');
2085+
$(this).find('.expansion-toggle .fa-caret-down').removeClass('is-hidden');
20862086
$(this).find('.viewbx').addClass('open');
20872087
} else{
2088-
$(this).find('.fa-caret-right').removeClass('is-hidden');
2089-
$(this).find('.fa-caret-down').addClass('is-hidden');
2088+
$(this).find('.expansion-toggle .fa-caret-right').removeClass('is-hidden');
2089+
$(this).find('.expansion-toggle .fa-caret-down').addClass('is-hidden');
20902090
$(this).find('.viewbx').removeClass('open');
20912091
}
20922092
});
@@ -2193,15 +2193,15 @@ define(['cartutils','filterutils','tippy','jquery', 'base'], function(cartutils,
21932193
toggle_elem = toggle_elem[0];
21942194
$(toggle_elem).hasClass('open') ? $(toggle_elem).removeClass('open') : $(toggle_elem).addClass('open');
21952195
}
2196-
if ($(row).find('.fa-caret-down.is-hidden').length>0){
2196+
if ($(row).find('.expansion-toggle .fa-caret-down.is-hidden').length>0){
21972197
var rowsAdded = true;
2198-
$(row).find('.fa-caret-right').addClass('is-hidden');
2199-
$(row).find('.fa-caret-down').removeClass('is-hidden');
2198+
$(row).find('.expansion-toggle .fa-caret-right').addClass('is-hidden');
2199+
$(row).find('.expansion-toggle .fa-caret-down').removeClass('is-hidden');
22002200

22012201
} else {
22022202
var rowsAdded = false;
2203-
$(row).find('.fa-caret-right').removeClass('is-hidden');
2204-
$(row).find('.fa-caret-down').addClass('is-hidden');
2203+
$(row).find('.expansion-toggle .fa-caret-right').removeClass('is-hidden');
2204+
$(row).find('.expansion-toggle .fa-caret-down').addClass('is-hidden');
22052205
}
22062206
changeViewStates(tabletype, [ids], rowsAdded);
22072207
}

0 commit comments

Comments
 (0)