1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

feature #2746: After deleting an element move to the list view

This commit is contained in:
Daniel Molina 2014-03-10 16:55:52 +01:00
parent cae54b410b
commit dbe02ce73d

View File

@ -1085,6 +1085,11 @@ function deleteElement(dataTable,tag){
var tr = $(tag,dataTable).parents('tr')[0];
dataTable.fnDeleteRow(tr);
recountCheckboxes(dataTable);
var tab = dataTable.parents(".tab");
if (Sunstone.rightInfoVisible(tab)) {
$("a[href='back']", tab).click();
}
}
//Handle the activation of action buttons and the check_all box