You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<input type="checkbox" onclick="var serverAddr=location.origin.substring(location.origin.indexOf('//') + 2); $('div#serverExportWarning').html($(this).prop('checked') && (serverAddr.toLowerCase().indexOf('localhost') == 0 || serverAddr.indexOf('127.0.0.1') == 0) ? 'WARNING: Gigwa seems to be running on localhost, any external tool running on a different machine will not be able to access exported files! If the computer running the webapp has an external IP address or domain name, you should use that instead.' : '');" id="keepExportOnServ" title="If ticked, generates a file URL instead of initiating a direct download. Required for pushing exported data to external online tools." class="input-checkbox">Keep files on server
<input type="checkbox" id="keepExportOnServ" style="vertical-align:top; margin-left:15px; margin-right:5px;" onclick="var enabled=$(this).is(':checked'); $('#enableExportPush').prop('checked', enabled); $('#enableExportPush').prop('disabled', enabled);" title="If ticked, export data will remain downloadable for at least 48h. You may then share its URL with collaborators." class="input-checkbox">
283
+
<label style="width:120px;"for="keepExportOnServ">Keep files on server</label>
286
284
</div>
285
+
<div style="text-align:center;">
286
+
<input type="checkbox" id="enableExportPush" style="vertical-align:top; margin-left:15px; margin-right:5px;" onclick="var serverAddr=location.origin.substring(location.origin.indexOf('//') + 2); $('div#serverExportWarning').html($(this).prop('checked') && (serverAddr.toLowerCase().indexOf('localhost') == 0 || serverAddr.indexOf('127.0.0.1') == 0) ? 'WARNING: Gigwa seems to be running on localhost, any external tool running on a different machine will not be able to access exported files! If the computer running the webapp has an external IP address or domain name, you should use that instead.' : '');" title="If ticked, exported data will be provided by URL, and available for pushing into external online tools." class="input-checkbox">
<h3 class="loading-message"><span id="progressText" class="loading-message">Please wait...</span><span id="ddlWarning" style="display:none;"><br/><br/>Output file is being generated and will not be valid before this message disappears</span></h3>
if (!keepExportOnServer && $('#exportPanel div.individualRelated:visible').size() >0) {
1859
-
if (exportedIndividualCount * count >1000000000) {
1860
-
alert("The matrix you are about to export contains more than 1 billion genotypes and is too large to be downloaded directly. Please tick the 'Keep files on server' box.");
1861
-
return;
1862
-
}
1863
-
}
1859
+
var keepExportOnServer = $('#keepExportOnServ').prop('checked');
1860
+
// if (!keepExportOnServer && $('#exportPanel div.individualRelated:visible').size() > 0) {
1861
+
// if (exportedIndividualCount * count > 1000000000) {
1862
+
// alert("The matrix you are about to export contains more than 1 billion genotypes and is too large to be downloaded directly. Please tick the 'Keep files on server' box.");
1863
+
// return;
1864
+
// }
1865
+
// }
1864
1866
1865
1867
var supportedTypes = $('#exportFormat').children().filter(':selected').data('type');
let fileExtensions = $("#exportFormat option:selected").data('ext').split(";");
1925
1926
if ($('#exportPanel input#exportedIndividualMetadataCheckBox').is(':checked') &&"FLAPJACK"!= $('#exportFormat').val() &&"DARWIN"!= $('#exportFormat').val() /* these two already have their own metadata file format*/)
$('#serverExportBox').html('<button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="float:right;" onclick="$(\'#serverExportBox\').hide();">x </button></button> Export file '+(keepExportOnServer ? 'may be downloaded from this URL' : 'will be available at this URL for 48h')+':<br/><a id="exportOutputUrl" download href="'+downloadURL+'">'+fileName+'</a>').show();
339
+
$('#serverExportBox').html('<button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="float:right;" onclick="$(\'#serverExportBox\').hide();">x </button></button> Export file will be available at this URL for '+(!keepExportOnServer ? 1 : 48)+'h:<br/><a id="exportOutputUrl" download href="'+downloadURL+'">'+fileName+'</a><br/><br/>').show();
$('#serverExportBox').append('<br/><br/> <input type="button" value="Send exported data to Galaxy" onclick="sendToGalaxy(['+fileURLs+']);" /> ');
0 commit comments