Commit 2cf5ee56 authored by Georgios Gousios's avatar Georgios Gousios
Browse files

Merge branch 'master' of https://code.grnet.gr/git/synnefo

parents 88bb4904 795f6fee
......@@ -15,17 +15,20 @@ function ISODateString(d){
}
function update_confirmations(){
$('div.confirm_single').hide(); // hide all confirm boxes to begin with
// hide all confirm boxes to begin with
$('div.confirm_single').hide();
$('div.confirm_multiple').hide();
// standard view only
if ($.cookie("list") != '1') {
for (i=0;i<pending_actions.length;i++){ // show single confirms
for (i=0;i<pending_actions.length;i++){
// show single confirms
$("div.machine#"+pending_actions[i][1]+' .confirm_single').show();
}
}
if (pending_actions.length>1 || $.cookie("list") == '1' && pending_actions.length == 1){ // if more than one pending action show multiple confirm box
// if more than one pending action show multiple confirm box
if (pending_actions.length>1 || $.cookie("list") == '1' && pending_actions.length == 1){
$('div.confirm_multiple span.actionLen').text(pending_actions.length);
// set the label of the buttons in list view
if ($.cookie("list") == '1') {
......@@ -381,7 +384,7 @@ function identify_flavor(cpu, disk, ram){
return 0;
}
// update the actions in the
// update the actions in list view
function updateActions() {
var states = [];
var on = [];
......
......@@ -104,6 +104,10 @@ $("tbody input[type='checkbox']").live('change', function() {
update_confirmations();
});
$("div.confirm_multiple button").click(function() {
$(".selected").removeClass('selected');
});
// destroy action
$("a.enabled#action-destroy").live('click', function() {
var checked = $("table.list-machines tbody input[type='checkbox']:checked");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment