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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
0af622df
authored
May 16, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: fix interactive group add/remove
parent
12048406
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
firewall_gui/static/js/project.js
+6
-2
No files found.
firewall_gui/static/js/project.js
View file @
0af622df
...
@@ -89,7 +89,9 @@ var controllers = {
...
@@ -89,7 +89,9 @@ var controllers = {
$scope
.
removeHostGroup
=
function
(
group
)
{
$scope
.
removeHostGroup
=
function
(
group
)
{
for
(
var
i
in
$scope
.
entity
.
groups
)
{
for
(
var
i
in
$scope
.
entity
.
groups
)
{
var
group_
=
$scope
.
entity
.
groups
[
i
];
var
group_
=
$scope
.
entity
.
groups
[
i
];
if
(
group_
.
name
==
group
.
name
)
{
if
(
group_
.
name
==
group
.
name
&&
group_
.
__created
)
{
$scope
.
entity
.
groups
.
splice
(
i
,
1
);
}
else
if
(
group_
.
name
==
group
.
name
)
{
group_
.
__destroyed
=
true
;
group_
.
__destroyed
=
true
;
return
;
return
;
}
}
...
@@ -116,7 +118,9 @@ var controllers = {
...
@@ -116,7 +118,9 @@ var controllers = {
$scope
.
removeVlan
=
function
(
vlan
)
{
$scope
.
removeVlan
=
function
(
vlan
)
{
for
(
var
i
in
$scope
.
entity
.
vlans
)
{
for
(
var
i
in
$scope
.
entity
.
vlans
)
{
var
vlan_
=
$scope
.
entity
.
vlans
[
i
];
var
vlan_
=
$scope
.
entity
.
vlans
[
i
];
if
(
vlan_
.
name
==
vlan
.
name
)
{
if
(
vlan_
.
name
==
vlan
.
name
&&
vlan_
.
__created
)
{
$scope
.
entity
.
vlans
.
splice
(
i
,
1
);
}
else
if
(
vlan_
.
name
==
vlan
.
name
)
{
vlan_
.
__destroyed
=
true
;
vlan_
.
__destroyed
=
true
;
return
;
return
;
}
}
...
...
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