Skip to content
Snippets Groups Projects
Commit c1baa85f authored by Christodoulos Psaltis's avatar Christodoulos Psaltis
Browse files

Comment out page reload on delete, used for debugging

parent fbbd2ad9
No related branches found
No related tags found
No related merge requests found
......@@ -202,7 +202,7 @@ function update_machines_view(data){
if (server.status == "DELETED") {
vmTable.fnDeleteRow(current);
// Reload the page to check if server list is empty
location.reload(true);
//location.reload(true);
} else { // when server is not be deleted, it should be updated
if (['BUILD','ACTIVE','REBOOT'].indexOf(server.status) >= 0 &&
[STATUS_MESSAGES['STOPPED'], STATUS_MESSAGES['ERROR'],
......
......@@ -229,7 +229,7 @@ function update_machines_view(data){
if (server.status == 'DELETED') {
existing.remove();
// Reload the page to check if server list is empty
location.reload(true);
//location.reload(true);
try {
console.info(existing.find("a.name span.name").text() + ' removed');
} catch(err) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment