Revision ef7770cf
b/ui/static/main.css | ||
---|---|---|
1459 | 1459 |
background-color: #E6EEEE; |
1460 | 1460 |
background-image: url(bg.gif); |
1461 | 1461 |
background-repeat: no-repeat; |
1462 |
background-position: center right;
|
|
1462 |
background-position: right 11px;
|
|
1463 | 1463 |
font-weight: normal; |
1464 | 1464 |
border: 1px solid #FFF; |
1465 |
border-bottom: none; |
|
1465 | 1466 |
padding: 4px; |
1466 | 1467 |
text-align: left; |
1467 | 1468 |
vertical-align: middle; |
... | ... | |
1542 | 1543 |
} |
1543 | 1544 |
|
1544 | 1545 |
div.list table thead #name { |
1545 |
width: 50px !important;
|
|
1546 |
width: 70px !important;
|
|
1546 | 1547 |
} |
1547 | 1548 |
|
1548 | 1549 |
.spinner, .wave { |
b/ui/static/synnefo.js | ||
---|---|---|
1 | 1 |
var flavors = [], images = [], servers = [], disks = [], cpus = [], ram = []; |
2 | 2 |
var changes_since = 0, deferred = 0, update_request = false, load_request = false, pending_actions = []; |
3 | 3 |
var API_URL = "/api/v1.1"; |
4 |
var serverlength = 0; |
|
5 | 4 |
|
6 | 5 |
function ISODateString(d){ |
7 | 6 |
//return a date in an ISO 8601 format using UTC. |
... | ... | |
58 | 57 |
|
59 | 58 |
// standard view only |
60 | 59 |
if ($.cookie("list") != '1') { |
61 |
for (i=0;i<pending_actions.length;i++){ |
|
60 |
for (var i=0;i<pending_actions.length;i++){
|
|
62 | 61 |
// show single confirms |
63 | 62 |
$("div.machine#"+pending_actions[i][1]+' .confirm_single').show(); |
64 | 63 |
} |
... | ... | |
72 | 71 |
} |
73 | 72 |
|
74 | 73 |
function list_view() { |
75 |
serverlength = 0; // reset server length |
|
76 | 74 |
changes_since = 0; // to reload full list |
77 | 75 |
pending_actions = []; // clear pending actions |
78 | 76 |
update_confirmations(); |
... | ... | |
103 | 101 |
} |
104 | 102 |
|
105 | 103 |
function standard_view() { |
106 |
serverlength = 0; // reset server length |
|
107 | 104 |
changes_since = 0; // to reload full list |
108 | 105 |
pending_actions = []; // clear pending actions |
109 | 106 |
update_confirmations(); |
b/ui/templates/list.html | ||
---|---|---|
122 | 122 |
checked.each(function(i,c) { |
123 | 123 |
serverID=c.id; |
124 | 124 |
serverName = $('#'+serverID+' span.name').text(); |
125 |
serverlength -= 1; |
|
126 | 125 |
pending_actions.push([destroy, serverID]); |
127 | 126 |
}); |
128 | 127 |
update_confirmations(); |
... | ... | |
310 | 309 |
$('.confirm_multiple').addClass('fixed'); |
311 | 310 |
else |
312 | 311 |
$('.confirm_multiple').removeClass('fixed'); |
312 |
|
|
313 |
$('.dataTables_scrollHeadInner table').attr('style',''); |
|
314 |
$('.dataTables_scrollHeadInner th').attr('style',''); |
|
315 |
|
|
313 | 316 |
} |
314 | 317 |
|
315 | 318 |
function display_success(serverID) { |
b/ui/templates/standard.html | ||
---|---|---|
64 | 64 |
$("#editor-1 h3").attr('id', serverID); |
65 | 65 |
$("#editor-2 h3").attr('id', serverID); |
66 | 66 |
editMetadata(); |
67 |
return false; |
|
67 | 68 |
}); |
68 | 69 |
|
69 | 70 |
// intercept reboot click |
Also available in: Unified diff