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
7cbb25e0
Commit
7cbb25e0
authored
Apr 17, 2011
by
Mike Muzurakis
Browse files
minor code cleanup on custom radio button
parent
5ed9ee36
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/static/synnefo.js
View file @
7cbb25e0
...
...
@@ -351,7 +351,6 @@ function update_wizard_flavors(){
$
(
"
#cpu:range
"
).
data
().
rangeinput
.
change
(
function
(
event
,
value
){
$
(
"
#cpu-indicator
"
)[
0
].
value
=
cpus
[
Number
(
value
)];
$
(
"
#custom
"
).
click
();
$
(
"
#custom input
"
).
attr
(
'
checked
'
,
'
checked
'
);
$
(
"
#cpu-indicator
"
).
removeClass
(
'
selectedrange
'
);
});
$
(
"
#ram:range
"
).
data
().
rangeinput
.
onSlide
(
function
(
event
,
value
){
...
...
@@ -361,7 +360,6 @@ function update_wizard_flavors(){
$
(
"
#ram:range
"
).
data
().
rangeinput
.
change
(
function
(
event
,
value
){
$
(
"
#ram-indicator
"
)[
0
].
value
=
ram
[
Number
(
value
)];
$
(
"
#custom
"
).
click
();
$
(
"
#custom input
"
).
attr
(
'
checked
'
,
'
checked
'
);
$
(
"
#ram-indicator
"
).
removeClass
(
'
selectedrange
'
);
});
$
(
"
#storage:range
"
).
data
().
rangeinput
.
onSlide
(
function
(
event
,
value
){
...
...
@@ -371,7 +369,6 @@ function update_wizard_flavors(){
$
(
"
#storage:range
"
).
data
().
rangeinput
.
change
(
function
(
event
,
value
){
$
(
"
#storage-indicator
"
)[
0
].
value
=
disks
[
Number
(
value
)];
$
(
"
#custom
"
).
click
();
$
(
"
#custom input
"
).
attr
(
'
checked
'
,
'
checked
'
);
$
(
"
#storage-indicator
"
).
removeClass
(
'
selectedrange
'
);
});
}
...
...
ui/templates/machines.html
View file @
7cbb25e0
...
...
@@ -495,6 +495,7 @@ $("#custom").click(function(){
$
(
"
#ram
"
).
attr
(
'
disabled
'
,
false
);
$
(
"
#storage
"
).
attr
(
'
disabled
'
,
false
);
$
(
"
strong.sliders
"
).
style
=
'
color: #778899;
'
;
$
(
"
#custom input
"
).
attr
(
'
checked
'
,
'
checked
'
);
$
(
"
#custom
"
).
addClass
(
"
active
"
);
$
(
"
#medium
"
).
removeClass
(
"
active
"
);
$
(
"
#large
"
).
removeClass
(
"
active
"
);
...
...
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