Revision a7b7536a ui/templates/standard.html

b/ui/templates/standard.html
299 299
                    existing.find(".status").text(STATUS_MESSAGES[server.status]); 
300 300
                } else if (['STOPPED','ERROR'].indexOf(server.status) >= 0 &&
301 301
                           [STATUS_MESSAGES['ACTIVE'], STATUS_MESSAGES['BUILD'], STATUS_MESSAGES['REBOOT'],
302
                            'Shutting down'].indexOf(existing.find(".status").text()) >= 0) {
302
                            'Shutting down', 'Starting'].indexOf(existing.find(".status").text()) >= 0) {
303 303
                    // from active, building, rebooting, or shutting down to stopped or on error
304 304
                    // shutting down is not an api state, it means the server is active
305 305
                    moved = existing.clone().appendTo(".terminated");
......
328 328
                    existing.find('.spinner').show();
329 329
                }                            
330 330
            }
331
            //existing.find(".status").text(STATUS_MESSAGES[server.status]);
331 332
            existing.find("a.name span.name").text(server.name.substring(0,100));
332 333
            existing.find("a.ip span.public").text(String(server.addresses.values[0].values[0].addr).replace(',',' '));
333 334
        } else if (server.status != 'DELETED') {
......
355 356
                $('div.#' + server.id + ' a.action-shutdown').hide();        
356 357
                $('div.#' + server.id + ' a.action-destroy').addClass('destroy-padding');        
357 358
            }
358
        }  else if (server.status == 'DELETED') {
359
        }
359
        } 
360 360
    });
361 361

  
362 362
    $("#spinner").hide();
......
408 408
    // configure flavors
409 409
    update_flavors(); 
410 410
}
411

  
411 412
// set the label of the multiple buttons 
412 413
$('div.confirm_multiple button.yes').text('Confirm All');
413 414
$('div.confirm_multiple button.no').text('Cancel All');
415

  
414 416
// reposition multiple confirmation box on window resize
415 417
$(window).resize(function(){
416 418
    if (this.innerHeight - 220 < $('#machinesview').height())
......
418 420
    else
419 421
        $('.confirm_multiple').removeClass('fixed');
420 422
});
423

  
421 424
// start updating vm list
422 425
update_vms(UPDATE_INTERVAL);
423 426
</script>

Also available in: Unified diff