-
+
+
+
+ Export Data
+
+
+
+ Reset
+
+
+
+
diff --git a/public/js/buttonFunctions.js b/public/js/buttonFunctions.js
index 8eda5b58..bde8d22f 100755
--- a/public/js/buttonFunctions.js
+++ b/public/js/buttonFunctions.js
@@ -507,3 +507,25 @@ let importTableData = async function(obj) {
$(`#tableData_select-items-${currentTableDataIndex}`).click();
};
+
+let exportData = function(){
+ // Disable checkboxes for inaccessible terms
+ termConverter.forEach(term => {
+ let isAccessibleObj = isAccessible(term);
+
+ if (isAccessibleObj.accessible) {
+ $(`#export_checkbox_terms_${term}`).removeAttr("disabled");
+ $(`#export_checkbox_terms_${term} ~ span`)
+ .removeAttr("aria-label")
+ .removeAttr("tabindex")
+ .removeClass("hastooltip");
+ } else {
+ $(`#export_checkbox_terms_${term}`).attr("disabled", true);
+ $(`#export_checkbox_terms_${term} ~ span`)
+ .attr("aria-label", isAccessibleObj.reason)
+ .attr("tabindex", 0)
+ .addClass("hastooltip");
+ }
+ });
+ exportModal.style.display = "inline-block";
+}
\ No newline at end of file
diff --git a/public/js/home.js b/public/js/home.js
index 30da2d6f..45409891 100644
--- a/public/js/home.js
+++ b/public/js/home.js
@@ -758,53 +758,6 @@ let scheduleTable = new Tabulator("#scheduleTable", {
],
});
-let buttonsTable = new Tabulator("#buttonsTable", {
- //height:205, // set height of table (in CSS or here), this enables the Virtual DOM and improves render speed dramatically (can be any valid css height value)
- index: "name",
- selectable: 1,
- headerHozAlign:"right",
- layout: "fitColumns", //fit columns to width of table (optional)
- columns: [ // Define Table Columns
- {
- title: "Export Table Data",
- titleFormatter: () => '',
- headerClick: async () => {
- // Disable checkboxes for inaccessible terms
- termConverter.forEach(term => {
- let isAccessibleObj = isAccessible(term);
-
- if (isAccessibleObj.accessible) {
- $(`#export_checkbox_terms_${term}`).removeAttr("disabled");
- $(`#export_checkbox_terms_${term} ~ span`)
- .removeAttr("aria-label")
- .removeAttr("tabindex")
- .removeClass("hastooltip");
- } else {
- $(`#export_checkbox_terms_${term}`).attr("disabled", true);
- $(`#export_checkbox_terms_${term} ~ span`)
- .attr("aria-label", isAccessibleObj.reason)
- .attr("tabindex", 0)
- .addClass("hastooltip");
- }
- });
- exportModal.style.display = "inline-block";
- },
- width: 76,
- headerSort: false,
- cssClass: "icon-col"
- },
- {
- title: "Reset Table Data",
- titleFormatter: () => '',
- headerClick: resetTableData,
- width: 76,
- headerSort: false,
- cssClass: "icon-col"
- },
- ],
- }
-);
-
let classesTable = new Tabulator("#classesTable", {
//height:205, // set height of table (in CSS or here), this enables the Virtual DOM and improves render speed dramatically (can be any valid css height value)
index: "name",