Revision 853c53ea ui/static/synnefo.js

b/ui/static/synnefo.js
674 674
    return false;
675 675
}
676 676

  
677
// rename action
677
// rename server name action
678 678
function rename(serverID, serverName){
679 679
	if (!serverID.length){
680 680
		//ajax_success('DEFAULT');
......
696 696
                    display_failure(jqXHR.status, serverID, 'Rename', jqXHR.responseText)
697 697
                    },
698 698
        success: function(data, textStatus, jqXHR) {
699
                    if ( jqXHR.status == '202') {
699
                    if ( jqXHR.status == '204') {
700 700
					    try {
701 701
                            console.info('renamed ' + serverID);
702 702
                        } catch(err) {}

Also available in: Unified diff