Revision ed7b588e ui/templates/machines.html

b/ui/templates/machines.html
967 967
            $('#' + serverID + ' .display').removeClass('display');
968 968
            if (action[0] == shutdown) {
969 969
                $('#' + serverID + ' .status').text(TRANSITIONS['Shutting down']);
970
                $('#' + serverID + ' .state').removeClass().addClass('state shutting-state');
970 971
            } else if (action[0] == start) {
971 972
                $('#' + serverID + ' .status').text(TRANSITIONS['Starting']);
973
                $('#' + serverID + ' .state').removeClass().addClass('state starting-state');
972 974
            } else if (action[0] == reboot) {
973 975
                $('#' + serverID + ' .status').text(TRANSITIONS['Rebooting']);
976
                $('#' + serverID + ' .state').removeClass().addClass('state rebooting-state');
974 977
            } else if (action[0] == destroy) {
975 978
                $('#' + serverID + ' .status').text(TRANSITIONS['Destroying']);
979
                $('#' + serverID + ' .state').removeClass().addClass('state destroying-state');
976 980
            }
977 981
            $('#' + serverID + ' .spinner').show();
978 982
        } else { // list view

Also available in: Unified diff