Commit a6d77c7f by Kálmán Viktor

dashboard: show success message only once after mass delete

parent 9f8deb77
...@@ -116,8 +116,8 @@ function massDeleteVm() { ...@@ -116,8 +116,8 @@ function massDeleteVm() {
selected = [] selected = []
$('.vm-list-group-control a').attr('disabled', true); $('.vm-list-group-control a').attr('disabled', true);
$(this).remove(); $(this).remove();
addMessage(data['message'], 'success'); });
}); addMessage(data['message'], 'success');
}, },
error: function(xhr, textStatus, error) { error: function(xhr, textStatus, error) {
// TODO this // TODO this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment