Revision a1a31201 ui/templates/machines.html

b/ui/templates/machines.html
294 294

  
295 295
// confirm all actions
296 296
$("div.confirm_multiple .yes").live('click', function(){
297
    
297
    while(pending_actions.length > 0){ // if there is a pending action for this server execute it
298
        action = pending_actions.pop(); // extract action
299
        serverID = action[1];
300
        action[0]([serverID]); // execute action
301
        $('#'+serverID+' .spinner').show();
302
        $('#'+serverID+' .selected').removeClass('selected');
303
        $('#'+serverID+' .display').removeClass('display');
304
    }
305
    update_confirmations();    
298 306
});
299 307

  
300 308
// cancel all actions

Also available in: Unified diff