Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e57d3c44
authored
Jul 30, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: js i18n
parent
2dbb5252
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
circle/dashboard/static/dashboard/vm-create.js
+4
-3
No files found.
circle/dashboard/static/dashboard/vm-create.js
View file @
e57d3c44
...
@@ -67,6 +67,7 @@ function vmCreateLoaded() {
...
@@ -67,6 +67,7 @@ function vmCreateLoaded() {
}
}
function
vmCustomizeLoaded
()
{
function
vmCustomizeLoaded
()
{
$
(
"[title]"
).
tooltip
();
/* network thingies */
/* network thingies */
/* add network */
/* add network */
...
@@ -92,7 +93,7 @@ function vmCustomizeLoaded() {
...
@@ -92,7 +93,7 @@ function vmCustomizeLoaded() {
/* add dummy text if no more networks are available */
/* add dummy text if no more networks are available */
if
(
$
(
'#vm-create-network-add-select option'
).
length
<
1
)
{
if
(
$
(
'#vm-create-network-add-select option'
).
length
<
1
)
{
$
(
'#vm-create-network-add-button'
).
attr
(
'disabled'
,
true
);
$
(
'#vm-create-network-add-button'
).
attr
(
'disabled'
,
true
);
$
(
'#vm-create-network-add-select'
).
html
(
'<option value="-1">
No more networks!
</option>'
);
$
(
'#vm-create-network-add-select'
).
html
(
'<option value="-1">
'
+
gettext
(
"No more networks."
)
+
'
</option>'
);
}
}
return
false
;
return
false
;
...
@@ -124,7 +125,7 @@ function vmCustomizeLoaded() {
...
@@ -124,7 +125,7 @@ function vmCustomizeLoaded() {
/* remove the selection from the multiple select */
/* remove the selection from the multiple select */
$
(
'#vm-create-network-add-vlan option[value="'
+
vlan_pk
+
'"]'
).
prop
(
'selected'
,
false
);
$
(
'#vm-create-network-add-vlan option[value="'
+
vlan_pk
+
'"]'
).
prop
(
'selected'
,
false
);
if
(
$
(
'#vm-create-network-list'
).
children
(
'span'
).
length
<
1
)
{
if
(
$
(
'#vm-create-network-list'
).
children
(
'span'
).
length
<
1
)
{
$
(
'#vm-create-network-list'
).
append
(
'Not added to any network!'
);
$
(
'#vm-create-network-list'
).
append
(
gettext
(
"Not added to any network"
)
);
}
}
});
});
return
false
;
return
false
;
...
@@ -155,7 +156,7 @@ function vmCustomizeLoaded() {
...
@@ -155,7 +156,7 @@ function vmCustomizeLoaded() {
// if all networks are added add a dummy and disable the add button
// if all networks are added add a dummy and disable the add button
if
(
$
(
"#vm-create-network-add-select option"
).
length
<
1
)
{
if
(
$
(
"#vm-create-network-add-select option"
).
length
<
1
)
{
$
(
"#vm-create-network-add-select"
).
html
(
'<option value="-1">
No more networks!
</option>'
);
$
(
"#vm-create-network-add-select"
).
html
(
'<option value="-1">
'
+
gettext
(
"No more networks."
)
+
'
</option>'
);
$
(
'#vm-create-network-add-button'
).
attr
(
'disabled'
,
true
);
$
(
'#vm-create-network-add-button'
).
attr
(
'disabled'
,
true
);
}
}
...
...
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