Revision 7338f38d ui/templates/standard.html

b/ui/templates/standard.html
397 397
}
398 398

  
399 399
// basic functions executed on page load
400
if ( flavors.length == 0 || images.length == 0 ) {
401
    if ( flavors.length == 0 ) { 
402
        // configure flavors, this also calls update_vms(UPDATE_INTERVAL)
403
        update_flavors();
404
    } else {
405
        // populate image list
406
        update_images(); 
407
        // start updating vm list
408
        update_vms(UPDATE_INTERVAL);
409
    }
400
if ( flavors.length == 0 && images.length == 0 ) {
401
    // configure flavors, this also calls update_vms(UPDATE_INTERVAL)
402
    update_flavors();
403
    // populate image list
404
    update_images(); 
405
} else if ( flavors.length == 0 && images.length != 0 ) {
406
    // configure flavors, this also calls update_vms(UPDATE_INTERVAL)
407
    update_flavors();
408
} else if ( flavors.length != 0 && images.length == 0 ) {
409
    // populate image list
410
    update_images(); 
411
    update_vms(UPDATE_INTERVAL);
410 412
} else {
411 413
    // start updating vm list
412 414
    update_vms(UPDATE_INTERVAL);

Also available in: Unified diff