about summary refs log tree commit diff
path: root/uploader/templates/phenotypes/view-dataset.html
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/templates/phenotypes/view-dataset.html')
-rw-r--r--uploader/templates/phenotypes/view-dataset.html68
1 files changed, 0 insertions, 68 deletions
diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html
index fa1044b..306dcce 100644
--- a/uploader/templates/phenotypes/view-dataset.html
+++ b/uploader/templates/phenotypes/view-dataset.html
@@ -133,74 +133,6 @@
           {
               select: "multi+shift",
               layout: {
-                  top2: {
-                      buttons: [
-                          {
-                              extend: "selectAll",
-                              className: "btn btn-info",
-                              titleAttr: "Click to select ALL records in the table."
-                          },
-                          {
-                              extend: "selectNone",
-                              className: "btn btn-info",
-                              titleAttr: "Click to deselect ANY selected record(s) in the table."
-                          },
-                          {
-                              text: "Bulk Edit (Download Data)",
-                              action: (event, dt, node, config) => {
-                                  var phenoids = [];
-                                  var selected = dt.rows({selected: true, page: "all"}).data();
-                                  for(var idx = 0; idx < selected.length; idx++) {
-                                      phenoids.push({
-                                          phenotype_id: selected[idx].Id,
-                                          xref_id: selected[idx].xref_id
-                                      });
-                                  }
-                                  if(phenoids.length == 0) {
-                                      alert("No record selected. Nothing to do!");
-                                      return false;
-                                  }
-                                  $.ajax(
-                                      (`/species/${species_id}/populations/` +
-                                       `${population_id}/phenotypes/datasets/` +
-                                       `${dataset_id}/download`),
-                                      {
-                                          method: "POST",
-                                          data: JSON.stringify(phenoids),
-                                          xhrFields: {
-                                              responseType: "blob"
-                                          },
-                                          success: (data, textStatus, jqXHR) => {
-                                              var link = document.createElement("a");
-                                              uri = window.URL.createObjectURL(data);
-                                              link.href = uri;
-                                              link.download = `${dataset_name}_data.tsv`;
-
-                                              document.body.appendChild(link);
-                                              link.click();
-                                              window.URL.revokeObjectURL(uri);
-                                              link.remove();
-                                          },
-                                          error: (jQXHR, textStatus, errorThrown) => {
-                                              console.log("Experienced an error: ", textStatus);
-                                              console.log("The ERROR: ", errorThrown);
-                                          },
-                                          contentType: "application/json"
-                                      });
-                              },
-                              className: "btn btn-info",
-                              titleAttr: "Click to download data for editing."
-                          },
-                          {
-                              text: "Bulk Edit (Upload Data)",
-                              action: (event, dt, node, config) => {
-                                  alert("Not implemented yet!")
-                              },
-                              className: "btn btn-info",
-                              titleAttr: "Click to upload edited data you got by clicking the `Bulk Edit (Download Data)` button."
-                          }
-                      ]
-                  },
                   top1Start: {
                       pageLength: {
                           text: "Show _MENU_ of _TOTAL_"