Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
f19ae9ac
Commit
f19ae9ac
authored
Apr 17, 2011
by
Dimitris Moraitis
Browse files
minor css/js improvements
parent
8d6aa118
Changes
4
Hide whitespace changes
Inline
Side-by-side
ui/static/main.css
View file @
f19ae9ac
...
...
@@ -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
:
5
0px
!important
;
width
:
7
0px
!important
;
}
.spinner
,
.wave
{
...
...
ui/static/synnefo.js
View file @
f19ae9ac
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
();
...
...
ui/templates/list.html
View file @
f19ae9ac
...
...
@@ -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
)
{
...
...
ui/templates/standard.html
View file @
f19ae9ac
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment