Commit f19ae9ac authored by Dimitris Moraitis's avatar Dimitris Moraitis
Browse files

minor css/js improvements

parent 8d6aa118
......@@ -1459,9 +1459,10 @@ div.list table thead tr th {
background-color: #E6EEEE;
background-image: url(bg.gif);
background-repeat: no-repeat;
background-position: center right;
background-position: right 11px;
font-weight: normal;
border: 1px solid #FFF;
border-bottom: none;
padding: 4px;
text-align: left;
vertical-align: middle;
......@@ -1542,7 +1543,7 @@ div.list table thead #status {
}
div.list table thead #name {
width: 50px !important;
width: 70px !important;
}
.spinner, .wave {
......
var flavors = [], images = [], servers = [], disks = [], cpus = [], ram = [];
var changes_since = 0, deferred = 0, update_request = false, load_request = false, pending_actions = [];
var API_URL = "/api/v1.1";
var serverlength = 0;
function ISODateString(d){
//return a date in an ISO 8601 format using UTC.
......@@ -58,7 +57,7 @@ function update_confirmations(){
// standard view only
if ($.cookie("list") != '1') {
for (i=0;i<pending_actions.length;i++){
for (var i=0;i<pending_actions.length;i++){
// show single confirms
$("div.machine#"+pending_actions[i][1]+' .confirm_single').show();
}
......@@ -72,7 +71,6 @@ function update_confirmations(){
}
function list_view() {
serverlength = 0; // reset server length
changes_since = 0; // to reload full list
pending_actions = []; // clear pending actions
update_confirmations();
......@@ -103,7 +101,6 @@ function list_view() {
}
function standard_view() {
serverlength = 0; // reset server length
changes_since = 0; // to reload full list
pending_actions = []; // clear pending actions
update_confirmations();
......
......@@ -122,7 +122,6 @@ $("a.enabled#action-destroy").live('click', function() {
checked.each(function(i,c) {
serverID=c.id;
serverName = $('#'+serverID+' span.name').text();
serverlength -= 1;
pending_actions.push([destroy, serverID]);
});
update_confirmations();
......@@ -310,6 +309,10 @@ function update_machines_view(data){
$('.confirm_multiple').addClass('fixed');
else
$('.confirm_multiple').removeClass('fixed');
$('.dataTables_scrollHeadInner table').attr('style','');
$('.dataTables_scrollHeadInner th').attr('style','');
}
function display_success(serverID) {
......
......@@ -64,6 +64,7 @@ $("a.show-metadata").live('click', function() {
$("#editor-1 h3").attr('id', serverID);
$("#editor-2 h3").attr('id', serverID);
editMetadata();
return false;
});
// intercept reboot click
......
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