Revision db269618

b/ui/templates/machines_icon.html
302 302
    $(this).closest("div.machine").find('.action_error').hide();
303 303
    // if there is already a pending action for this server replace it
304 304
    for (i=0; i<pending_actions.length; i++) {
305
        if (pending_actions[i][1]==serverID) {
305
        if (pending_actions[i][1] == serverID) {
306 306
            pending_actions[i][0] = reboot;
307 307
            found = true
308 308
        }
......
328 328
    $(this).closest("div.machine").find('.action_error').hide();
329 329
    // if there is already a pending action for this server replace it
330 330
    for (i=0; i<pending_actions.length; i++) {
331
        if (pending_actions[i][1]==serverID) {
331
        if (pending_actions[i][1] == serverID) {
332 332
            pending_actions[i][0] = shutdown;
333 333
            found = true
334 334
        }
......
353 353
    $(this).closest("div.machine").find('.action_error').hide();
354 354
    // if there is already a pending action for this server replace it
355 355
    for (i=0; i<pending_actions.length; i++) {
356
        if (pending_actions[i][1]==serverID) {
356
        if (pending_actions[i][1] == serverID) {
357 357
            pending_actions[i][0] = start;
358 358
            found = true
359 359
        }
......
378 378
    $(this).closest("div.machine").find('.action_error').hide();
379 379
    // if there is already a pending action for this server replace it
380 380
    for (i=0; i<pending_actions.length; i++) {
381
        if (pending_actions[i][1]==serverID) {
381
        if (pending_actions[i][1] == serverID) {
382 382
            pending_actions[i][0] = open_console;
383 383
            found = true
384 384
        }
......
404 404
    $(this).closest("div.machine").find('.action_error').hide();
405 405
    // if there is already a pending action for this server replace it
406 406
    for (i=0; i<pending_actions.length; i++) {
407
        if (pending_actions[i][1]==serverID) {
407
        if (pending_actions[i][1] == serverID) {
408 408
            pending_actions[i][0] = destroy;
409 409
            found = true
410 410
        }
......
458 458
    $(this).closest('div.action-container').children('a').removeClass('selected');
459 459
    $(this).closest('div.actions').removeClass('display');
460 460
    for (i=0; i<pending_actions.length; i++) { // if there is a pending action for this server remove it
461
        if (pending_actions[i][1]==serverID) {
461
        if (pending_actions[i][1] == serverID) {
462 462
            pending_actions.splice(i,1);
463 463
        }
464 464
    }

Also available in: Unified diff