}
}
+function toggleIncludeSqlInert() {
+ const include_sql = document.getElementById('include_sql_id');
+ const include_sql_label = document.getElementById('include_sql_label_id');
+ if (document.getElementById('download_as_many_files_id').checked) {
+ include_sql.checked = true;
+ include_sql.inert = true;
+ include_sql_label.inert = true;
+ } else {
+ include_sql.inert = false;
+ include_sql_label.inert = false;
+ }
+}
+
/* Initialization */
function attachEvents() {
const dl_ckbox = document.getElementById('download_label_id');
dl_ckbox.addEventListener("click", toggleDownload);
dl_ckbox.addEventListener("keydown", toggleDownload);
+
+ /* Download as zip file onchange */
+ document.getElementById('download_as_many_files_id')
+ .addEventListener("change", toggleIncludeSqlInert);
+ document.getElementById('download_as_one_file_id')
+ .addEventListener("change", toggleIncludeSqlInert);
}
attachEvents();
</%self.lib:td_input>
## Include SQL
- <%self.lib:td_label for_id="include_sql_id">
+ <%self.lib:td_label for_id="include_sql_id" id="include_sql_label_id">
Include SQL in the download
</%self.lib:td_label>
<%self.lib:td_input tab_index="${tab_index}">