Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a7e4aaef
authored
May 13, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: add vlan specific model functions
parent
f69117b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletions
+27
-1
firewall_gui/static/js/project.js
+27
-1
No files found.
firewall_gui/static/js/project.js
View file @
a7e4aaef
...
@@ -96,7 +96,33 @@ var controllers = {
...
@@ -96,7 +96,33 @@ var controllers = {
}
}
}
}
},
},
vlan
:
function
()
{},
vlan
:
function
(
$scope
)
{
$scope
.
newVlan
=
''
;
$scope
.
addVlan
=
function
(
vlan
)
{
for
(
var
i
in
$scope
.
entity
.
vlans
)
{
var
vlan_
=
$scope
.
entity
.
vlans
[
i
];
if
(
vlan_
.
name
==
vlan
&&
vlan_
.
__destroyed
)
{
vlan_
.
__destroyed
=
false
;
return
;
}
else
if
(
vlan_
.
name
==
vlan
)
{
return
;
}
}
$scope
.
entity
.
vlans
.
push
({
name
:
vlan
,
__created
:
true
,
})
}
$scope
.
removeVlan
=
function
(
vlan
)
{
for
(
var
i
in
$scope
.
entity
.
vlans
)
{
var
vlan_
=
$scope
.
entity
.
vlans
[
i
];
if
(
vlan_
.
name
==
vlan
.
name
)
{
vlan_
.
__destroyed
=
true
;
return
;
}
}
}
},
vlangroup
:
function
()
{},
vlangroup
:
function
()
{},
hostgroup
:
function
()
{},
hostgroup
:
function
()
{},
firewall
:
function
()
{},
firewall
:
function
()
{},
...
...
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