File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed
ckanext/dataexplorer/public/vendor/recline Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -4787,12 +4787,22 @@ this.recline.View = this.recline.View || {};
47874787 this . render ( ) ;
47884788 //Timeout of 2 seconds ensures that the form has been rendered before the select element is accessed
47894789 setTimeout ( ( ) => {
4790- document . getElementById ( "download-format" ) . innerHTML =
4791- DATASTORE_SEARCH_ROWS_MAX <= self . model . recordCount
4792- ? '<option value="compressed-csv">Compressed CSV</option><option value="compressed-csv-zip">Compressed CSV Zip</option>'
4793- : '<option value="csv">CSV</option><option value="compressed-csv">Compressed CSV</option><option value="json">JSON</option>' ;
4790+ const downloadFormatElement = document . getElementById ( "download-format" ) ;
4791+ const compressedOptions = `
4792+ <option value="compressed-csv">Compressed CSV (GZIP)</option>
4793+ <option value="compressed-csv-zip">Compressed CSV (ZIP)</option>
4794+ ` ;
4795+ const regularOptions = `
4796+ <option value="csv">CSV</option>
4797+ <option value="compressed-csv">Compressed CSV (GZIP)</option>
4798+ <option value="json">JSON</option>
4799+ ` ;
4800+
4801+ downloadFormatElement . innerHTML = DATASTORE_SEARCH_ROWS_MAX <= self . model . recordCount
4802+ ? compressedOptions
4803+ : regularOptions ;
47944804 } , 2000 ) ;
4795-
4805+
47964806 //Pre-Load helper libraries JSZip for zipping files
47974807 $ . getScript (
47984808 "https://cdnjs.cloudflare.com/ajax/libs/jszip/3.5.0/jszip.min.js"
You can’t perform that action at this time.
0 commit comments