Commit 3ed017d8 authored by Christodoulos Psaltis's avatar Christodoulos Psaltis
Browse files

Change inline comments

parent b3fafa3a
......@@ -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 = [];
......
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