Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b7cfe6a7
authored
Nov 14, 2014
by
Őry Máté
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: use dot notation in js
parent
4e337898
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
circle/network/static/js/network.js
+7
-7
No files found.
circle/network/static/js/network.js
View file @
b7cfe6a7
...
...
@@ -47,18 +47,18 @@ $("#ipv6-magic").click(function() {
data
:
{
ipv4
:
$
(
"[name=ipv4]"
).
val
(),
vlan
:
$
(
"[name=vlan]"
).
val
()},
success
:
function
(
data
)
{
$
(
"[name=ipv6]"
).
val
(
data
[
"ipv6"
]
);
$
(
"[name=ipv6]"
).
val
(
data
.
ipv6
);
}});
});
$
(
"#ipv4-magic"
).
click
(
function
()
{
$
.
ajax
({
url
:
window
.
location
,
data
:
{
vlan
:
$
(
"[name=vlan]"
).
val
()},
success
:
function
(
data
)
{
$
(
"[name=ipv4]"
).
val
(
data
[
"ipv4"
]
);
if
(
$
(
"[name=ipv6]"
).
val
()
!=
data
[
"ipv6"
]
)
{
$
(
"[name=ipv4]"
).
val
(
data
.
ipv4
);
if
(
$
(
"[name=ipv6]"
).
val
()
!=
data
.
ipv6
)
{
doBlink
(
"[name=ipv6]"
,
3
);
}
$
(
"[name=ipv6]"
).
val
(
data
[
"ipv6"
]
);
$
(
"[name=ipv6]"
).
val
(
data
.
ipv6
);
}});
});
$
(
"#ipv6-tpl-magic"
).
click
(
function
()
{
...
...
@@ -66,11 +66,11 @@ $("#ipv6-tpl-magic").click(function() {
data
:
{
network4
:
$
(
"[name=network4]"
).
val
(),
network6
:
$
(
"[name=network6]"
).
val
()},
success
:
function
(
data
)
{
$
(
"[name=ipv6_template]"
).
val
(
data
[
"ipv6_template"
]
);
if
(
$
(
"[name=host_ipv6_prefixlen]"
).
val
()
!=
data
[
"host_ipv6_prefixlen"
]
)
{
$
(
"[name=ipv6_template]"
).
val
(
data
.
ipv6_template
);
if
(
$
(
"[name=host_ipv6_prefixlen]"
).
val
()
!=
data
.
host_ipv6_prefixlen
)
{
doBlink
(
"[name=host_ipv6_prefixlen]"
,
3
);
}
$
(
"[name=host_ipv6_prefixlen]"
).
val
(
data
[
"host_ipv6_prefixlen"
]
);
$
(
"[name=host_ipv6_prefixlen]"
).
val
(
data
.
host_ipv6_prefixlen
);
}});
});
});
Kálmán Viktor
@kviktor
mentioned in merge request
!273 (merged)
Nov 14, 2014
mentioned in merge request
!273 (merged)
mentioned in merge request !273
Toggle commit list
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