Progresses on #76
This commit is contained in:
1 parent
ef04101eee
commit
a397e89d20
2 files changed
+2
-6
No files matched your search
@@ -254,11 +254,7 @@ $(document).on('page:editor', function() {
|
||||
|
||||
$("#content").on('click', '.delete', function(event) {
|
||||
event.preventDefault();
|
||||
button = $(this);
|
||||
|
||||
name = button.parent().parent().attr("for") || button.parent().parent().attr("id") || button.parent().parent().parent().attr("id");
|
||||
name = name.replace(/\[/, '\\[');
|
||||
name = name.replace(/\]/, '\\]');
|
||||
name = $(this).data("delete");
|
||||
|
||||
$('label[for="' + name + '"]').fadeOut().remove();
|
||||
$('#' + name).fadeOut().remove();
|
||||
|
||||
Reference in new issue
Block a user