Skip to content
Snippets Groups Projects
Commit ef282677 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

FIX: repaired data analysis module extension

parent ca620116
No related tags found
No related merge requests found
Pipeline #13708 passed
......@@ -39,7 +39,7 @@ var ext_data_analysis = function () {
var init = function (toolbox) {
/* initialization of the module */
this.add_ui();
ext_data_analysis.add_ui();
}
/**
......@@ -64,7 +64,7 @@ var ext_data_analysis = function () {
var button = $("<button>" + config["data_analysis_title"] + "</button>");
let entity_id = getEntityID(ent);
let analysis_script = config["analysis_script_file"];
button.click(_=>runCorrAnalysis(entity_id, analysis_script));
button.click(_=>ext_data_analysis.runAnalysis(entity_id, analysis_script));
$(ent).find(".caosdb-v-entity-header-buttons-list").prepend(button);
}
}
......@@ -83,6 +83,8 @@ var ext_data_analysis = function () {
/* the main function must return the initialization of the module */
return {
init: init,
add_ui: add_ui,
runAnalysis: runAnalysis,
};
//pass the dependencies as arguments here as well
}();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment