1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

editableList delete button click event not cancelled

This commit is contained in:
Nick O'Leary 2016-11-08 17:01:21 +00:00
parent 6042395b81
commit 60a41524f0

View File

@ -234,7 +234,8 @@
var deleteButton = $('<a/>',{href:"#",class:"red-ui-editableList-item-remove editor-button editor-button-small"}).appendTo(li); var deleteButton = $('<a/>',{href:"#",class:"red-ui-editableList-item-remove editor-button editor-button-small"}).appendTo(li);
$('<i/>',{class:"fa fa-remove"}).appendTo(deleteButton); $('<i/>',{class:"fa fa-remove"}).appendTo(deleteButton);
li.addClass("red-ui-editableList-item-removable"); li.addClass("red-ui-editableList-item-removable");
deleteButton.click(function() { deleteButton.click(function(evt) {
evt.preventDefault();
var data = row.data('data'); var data = row.data('data');
li.addClass("red-ui-editableList-item-deleting") li.addClass("red-ui-editableList-item-deleting")
li.fadeOut(300, function() { li.fadeOut(300, function() {