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:
parent
6042395b81
commit
60a41524f0
@ -234,7 +234,8 @@
|
||||
var deleteButton = $('<a/>',{href:"#",class:"red-ui-editableList-item-remove editor-button editor-button-small"}).appendTo(li);
|
||||
$('<i/>',{class:"fa fa-remove"}).appendTo(deleteButton);
|
||||
li.addClass("red-ui-editableList-item-removable");
|
||||
deleteButton.click(function() {
|
||||
deleteButton.click(function(evt) {
|
||||
evt.preventDefault();
|
||||
var data = row.data('data');
|
||||
li.addClass("red-ui-editableList-item-deleting")
|
||||
li.fadeOut(300, function() {
|
||||
|
Loading…
Reference in New Issue
Block a user