Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
2c668a94
Commit
2c668a94
authored
May 27, 2014
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FirewallRules: delete unused properties (else we get strange verification errors).
parent
19d3cd16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
FirewallRules.js
www/manager/grid/FirewallRules.js
+11
-10
No files found.
www/manager/grid/FirewallRules.js
View file @
2c668a94
...
...
@@ -55,16 +55,13 @@ Ext.define('PVE.FirewallRulePanel', {
var
me
=
this
;
// hack: editable ComboGrid returns nothing when empty, so we need to set ''
// Also, disabled text fields return nothing, so we need to set ''
if
(
values
.
source
===
undefined
)
{
values
.
source
=
''
;
}
if
(
values
.
dest
===
undefined
)
{
values
.
dest
=
''
;
}
if
(
values
.
proto
===
undefined
)
{
values
.
proto
=
''
;
}
Ext
.
Array
.
each
([
'
source
'
,
'
dest
'
,
'
proto
'
,
'
sport
'
,
'
dport
'
],
function
(
key
)
{
if
(
values
[
key
]
===
undefined
)
{
values
[
key
]
=
''
;
}
});
delete
values
.
modified_marker
;
...
...
@@ -147,6 +144,7 @@ Ext.define('PVE.FirewallRulePanel', {
}
]);
me
.
column2
=
[
{
xtype
:
'
pvecheckbox
'
,
...
...
@@ -170,9 +168,12 @@ Ext.define('PVE.FirewallRulePanel', {
me
.
down
(
'
field[name=dport]
'
).
setDisabled
(
false
);
}
else
{
me
.
down
(
'
field[name=proto]
'
).
setDisabled
(
true
);
me
.
down
(
'
field[name=proto]
'
).
setValue
(
''
);
me
.
down
(
'
field[name=sport]
'
).
setDisabled
(
true
);
me
.
down
(
'
field[name=sport]
'
).
setValue
(
''
);
me
.
down
(
'
field[name=dport]
'
).
setDisabled
(
true
);
}
me
.
down
(
'
field[name=dport]
'
).
setValue
(
''
);
}
}
}
},
...
...
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