Commit 8454662c authored by Markos Gogoulos's avatar Markos Gogoulos
Browse files

fix server rename

parent ac6da321
......@@ -674,7 +674,7 @@ function start(serverIDs){
return false;
}
// rename action
// rename server name action
function rename(serverID, serverName){
if (!serverID.length){
//ajax_success('DEFAULT');
......@@ -696,7 +696,7 @@ function rename(serverID, serverName){
display_failure(jqXHR.status, serverID, 'Rename', jqXHR.responseText)
},
success: function(data, textStatus, jqXHR) {
if ( jqXHR.status == '202') {
if ( jqXHR.status == '204') {
try {
console.info('renamed ' + serverID);
} catch(err) {}
......
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 to comment