Skip to content
Snippets Groups Projects
Commit e631cf18 authored by Timm Fitschen's avatar Timm Fitschen Committed by Henrik tom Wörden
Browse files

BUG: missing parameter in delete_action

parent 0611a71d
No related branches found
No related tags found
No related merge requests found
...@@ -572,7 +572,7 @@ var edit_mode = new function() { ...@@ -572,7 +572,7 @@ var edit_mode = new function() {
* This function treats the deletion of entities, i.e. when the "delete" * This function treats the deletion of entities, i.e. when the "delete"
* button is clicked. * button is clicked.
*/ */
this.delete_action = async function(){ this.delete_action = async function(entity){
var app = edit_mode.app; var app = edit_mode.app;
// this is the callback of the delete button // this is the callback of the delete button
// show waiting notification // show waiting notification
...@@ -1033,7 +1033,7 @@ var edit_mode = new function() { ...@@ -1033,7 +1033,7 @@ var edit_mode = new function() {
$(entity).find(".caosdb-f-edit-mode-entity-actions-panel").append(button); $(entity).find(".caosdb-f-edit-mode-entity-actions-panel").append(button);
$(button).click(() => {edit_mode.delete_action();}); $(button).click(() => {edit_mode.delete_action(entity);});
} }
this.remove_delete_button = function(entity) { this.remove_delete_button = function(entity) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment