Delete confirmation

This commit is contained in:
nikolark committed 2015-01-18 16:33:20 +01:00
1 parent 3f82d43de8
commit c43b03fedb
2 files changed
+4

No files matched your search

+2
View File
@@ -273,11 +273,13 @@
};
});
function success(res){
var checked_formatted = _.map(delete_these, function(el) { return el.destination; }).join(', ');
checked.closest('tr').remove();
/* remove list if no more rows */
if(list_el.find('.alias-row').length === 0) {
list_el.remove();
}
notify('Slettet', checked_formatted, 'success');
}
function error(res) {
notify('Kunne ikke slette', res.detail, 'error');
+2
View File
@@ -273,11 +273,13 @@
};
});
function success(res){
var checked_formatted = _.map(delete_these, function(el) { return el.destination; }).join(', ');
checked.closest('tr').remove();
/* remove list if no more rows */
if(list_el.find('.alias-row').length === 0) {
list_el.remove();
}
notify('Slettet', checked_formatted, 'success');
}
function error(res) {
notify('Kunne ikke slette', res.detail, 'error');