Skip to content

Commit 60a4152

Browse files
committed
editableList delete button click event not cancelled
1 parent 6042395 commit 60a4152

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

editor/js/ui/common/editableList.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@
234234
var deleteButton = $('<a/>',{href:"#",class:"red-ui-editableList-item-remove editor-button editor-button-small"}).appendTo(li);
235235
$('<i/>',{class:"fa fa-remove"}).appendTo(deleteButton);
236236
li.addClass("red-ui-editableList-item-removable");
237-
deleteButton.click(function() {
237+
deleteButton.click(function(evt) {
238+
evt.preventDefault();
238239
var data = row.data('data');
239240
li.addClass("red-ui-editableList-item-deleting")
240241
li.fadeOut(300, function() {

0 commit comments

Comments
 (0)