Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
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
Kulya
OpnSense
Commits
f8233bd0
Commit
f8233bd0
authored
Mar 28, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Apr 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remember scrolling position when toggling,
https://github.com/opnsense/core/issues/840
(cherry picked from commit
862fd2c6
)
parent
f2642562
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
54 additions
and
23 deletions
+54
-23
firewall_nat.php
src/www/firewall_nat.php
+6
-2
firewall_nat_1to1.php
src/www/firewall_nat_1to1.php
+6
-2
firewall_nat_npt.php
src/www/firewall_nat_npt.php
+6
-3
firewall_nat_out.php
src/www/firewall_nat_out.php
+6
-5
services_dyndns.php
src/www/services_dyndns.php
+4
-1
services_rfc2136.php
src/www/services_rfc2136.php
+4
-1
system_gateways.php
src/www/system_gateways.php
+2
-0
system_routes.php
src/www/system_routes.php
+4
-1
vpn_openvpn_client.php
src/www/vpn_openvpn_client.php
+6
-4
vpn_openvpn_csc.php
src/www/vpn_openvpn_csc.php
+6
-3
vpn_openvpn_server.php
src/www/vpn_openvpn_server.php
+4
-1
No files found.
src/www/firewall_nat.php
View file @
f8233bd0
...
@@ -203,7 +203,8 @@ $( document ).ready(function() {
...
@@ -203,7 +203,8 @@ $( document ).ready(function() {
});
});
// link move buttons
// link move buttons
$
(
"
.act_move
"
).
click
(
function
(){
$
(
"
.act_move
"
).
click
(
function
(
event
){
event
.
preventDefault
();
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#action
"
).
val
(
"
move
"
);
$
(
"
#action
"
).
val
(
"
move
"
);
...
@@ -211,13 +212,16 @@ $( document ).ready(function() {
...
@@ -211,13 +212,16 @@ $( document ).ready(function() {
});
});
// link toggle buttons
// link toggle buttons
$
(
"
.act_toggle
"
).
click
(
function
(){
$
(
"
.act_toggle
"
).
click
(
function
(
event
){
event
.
preventDefault
();
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#action
"
).
val
(
"
toggle
"
);
$
(
"
#action
"
).
val
(
"
toggle
"
);
$
(
"
#iform
"
).
submit
();
$
(
"
#iform
"
).
submit
();
});
});
// watch scroll position and set to last known on page load
watchScrollPosition
();
});
});
</script>
</script>
<?php
include
(
"fbegin.inc"
);
?>
<?php
include
(
"fbegin.inc"
);
?>
...
...
src/www/firewall_nat_1to1.php
View file @
f8233bd0
...
@@ -153,7 +153,8 @@ $main_buttons = array(
...
@@ -153,7 +153,8 @@ $main_buttons = array(
});
});
// link move buttons
// link move buttons
$
(
"
.act_move
"
).
click
(
function
(){
$
(
"
.act_move
"
).
click
(
function
(
event
){
event
.
preventDefault
();
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#action
"
).
val
(
"
move
"
);
$
(
"
#action
"
).
val
(
"
move
"
);
...
@@ -161,12 +162,15 @@ $main_buttons = array(
...
@@ -161,12 +162,15 @@ $main_buttons = array(
});
});
// link toggle buttons
// link toggle buttons
$
(
"
.act_toggle
"
).
click
(
function
(){
$
(
"
.act_toggle
"
).
click
(
function
(
event
){
event
.
preventDefault
();
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#action
"
).
val
(
"
toggle
"
);
$
(
"
#action
"
).
val
(
"
toggle
"
);
$
(
"
#iform
"
).
submit
();
$
(
"
#iform
"
).
submit
();
});
});
// watch scroll position and set to last known on page load
watchScrollPosition
();
});
});
</script>
</script>
...
...
src/www/firewall_nat_npt.php
View file @
f8233bd0
...
@@ -155,7 +155,8 @@ $main_buttons = array(
...
@@ -155,7 +155,8 @@ $main_buttons = array(
});
});
// link move buttons
// link move buttons
$
(
"
.act_move
"
).
click
(
function
(){
$
(
"
.act_move
"
).
click
(
function
(
event
){
event
.
preventDefault
();
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#action
"
).
val
(
"
move
"
);
$
(
"
#action
"
).
val
(
"
move
"
);
...
@@ -163,13 +164,15 @@ $main_buttons = array(
...
@@ -163,13 +164,15 @@ $main_buttons = array(
});
});
// link toggle buttons
// link toggle buttons
$
(
"
.act_toggle
"
).
click
(
function
(){
$
(
"
.act_toggle
"
).
click
(
function
(
event
){
event
.
preventDefault
();
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#action
"
).
val
(
"
toggle
"
);
$
(
"
#action
"
).
val
(
"
toggle
"
);
$
(
"
#iform
"
).
submit
();
$
(
"
#iform
"
).
submit
();
});
});
// watch scroll position and set to last known on page load
watchScrollPosition
();
});
});
</script>
</script>
...
...
src/www/firewall_nat_out.php
View file @
f8233bd0
...
@@ -224,23 +224,24 @@ include("head.inc");
...
@@ -224,23 +224,24 @@ include("head.inc");
});
});
// link move buttons
// link move buttons
$
(
"
.act_move
"
).
click
(
function
(){
$
(
"
.act_move
"
).
click
(
function
(
event
){
event
.
preventDefault
();
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#action
"
).
val
(
"
move
"
);
$
(
"
#action
"
).
val
(
"
move
"
);
$
(
"
#iform
"
).
submit
();
$
(
"
#iform
"
).
submit
();
event
.
preventDefault
();
});
});
// link toggle buttons
// link toggle buttons
$
(
"
.act_toggle
"
).
click
(
function
(){
$
(
"
.act_toggle
"
).
click
(
function
(
event
){
event
.
preventDefault
();
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#action
"
).
val
(
"
toggle
"
);
$
(
"
#action
"
).
val
(
"
toggle
"
);
$
(
"
#iform
"
).
submit
();
$
(
"
#iform
"
).
submit
();
event
.
preventDefault
();
});
});
// watch scroll position and set to last known on page load
watchScrollPosition
();
});
});
</script>
</script>
<?php
include
(
"fbegin.inc"
);
?>
<?php
include
(
"fbegin.inc"
);
?>
...
...
src/www/services_dyndns.php
View file @
f8233bd0
...
@@ -96,11 +96,14 @@ $main_buttons = array(
...
@@ -96,11 +96,14 @@ $main_buttons = array(
});
});
});
});
// link toggle buttons
// link toggle buttons
$
(
"
.act_toggle
"
).
click
(
function
(){
$
(
"
.act_toggle
"
).
click
(
function
(
event
){
event
.
preventDefault
();
$
.
post
(
window
.
location
,
{
act
:
'
toggle
'
,
id
:
$
(
this
).
data
(
"
id
"
)},
function
(
data
)
{
$
.
post
(
window
.
location
,
{
act
:
'
toggle
'
,
id
:
$
(
this
).
data
(
"
id
"
)},
function
(
data
)
{
location
.
reload
();
location
.
reload
();
});
});
});
});
// watch scroll position and set to last known on page load
watchScrollPosition
();
});
});
</script>
</script>
...
...
src/www/services_rfc2136.php
View file @
f8233bd0
...
@@ -94,11 +94,14 @@ $main_buttons = array(
...
@@ -94,11 +94,14 @@ $main_buttons = array(
});
});
});
});
// link toggle buttons
// link toggle buttons
$
(
"
.act_toggle
"
).
click
(
function
(){
$
(
"
.act_toggle
"
).
click
(
function
(
event
){
event
.
preventDefault
();
$
.
post
(
window
.
location
,
{
act
:
'
toggle
'
,
id
:
$
(
this
).
data
(
"
id
"
)},
function
(
data
)
{
$
.
post
(
window
.
location
,
{
act
:
'
toggle
'
,
id
:
$
(
this
).
data
(
"
id
"
)},
function
(
data
)
{
location
.
reload
();
location
.
reload
();
});
});
});
});
// watch scroll position and set to last known on page load
watchScrollPosition
();
});
});
</script>
</script>
...
...
src/www/system_gateways.php
View file @
f8233bd0
...
@@ -270,6 +270,8 @@ $( document ).ready(function() {
...
@@ -270,6 +270,8 @@ $( document ).ready(function() {
}]
}]
});
});
});
});
// watch scroll position and set to last known on page load
watchScrollPosition
();
});
});
</script>
</script>
...
...
src/www/system_routes.php
View file @
f8233bd0
...
@@ -206,13 +206,16 @@ $( document ).ready(function() {
...
@@ -206,13 +206,16 @@ $( document ).ready(function() {
});
});
// link move buttons
// link move buttons
$
(
"
.act_move
"
).
click
(
function
(){
$
(
"
.act_move
"
).
click
(
function
(
event
){
event
.
preventDefault
();
var
id
=
$
(
this
).
data
(
"
id
"
);
var
id
=
$
(
this
).
data
(
"
id
"
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#id
"
).
val
(
id
);
$
(
"
#act
"
).
val
(
"
move
"
);
$
(
"
#act
"
).
val
(
"
move
"
);
$
(
"
#iform
"
).
submit
();
$
(
"
#iform
"
).
submit
();
});
});
// watch scroll position and set to last known on page load
watchScrollPosition
();
});
});
</script>
</script>
<body>
<body>
...
...
src/www/vpn_openvpn_client.php
View file @
f8233bd0
...
@@ -414,20 +414,22 @@ $( document ).ready(function() {
...
@@ -414,20 +414,22 @@ $( document ).ready(function() {
});
});
// link toggle buttons
// link toggle buttons
$
(
"
.act_toggle
"
).
click
(
function
(){
$
(
"
.act_toggle
"
).
click
(
function
(
event
){
event
.
preventDefault
();
$
.
post
(
window
.
location
,
{
act
:
'
toggle
'
,
id
:
$
(
this
).
data
(
"
id
"
)},
function
(
data
)
{
$
.
post
(
window
.
location
,
{
act
:
'
toggle
'
,
id
:
$
(
this
).
data
(
"
id
"
)},
function
(
data
)
{
location
.
reload
();
location
.
reload
();
});
});
});
});
// link move buttons
// link move buttons
$
(
"
.act_move
"
).
click
(
function
(){
$
(
"
.act_move
"
).
click
(
function
(
event
){
event
.
preventDefault
();
$
(
"
#id
"
).
val
(
$
(
this
).
data
(
"
id
"
));
$
(
"
#id
"
).
val
(
$
(
this
).
data
(
"
id
"
));
$
(
"
#action
"
).
val
(
"
move
"
);
$
(
"
#action
"
).
val
(
"
move
"
);
$
(
"
#iform2
"
).
submit
();
$
(
"
#iform2
"
).
submit
();
});
});
// watch scroll position and set to last known on page load
watchScrollPosition
();
});
});
...
...
src/www/vpn_openvpn_csc.php
View file @
f8233bd0
...
@@ -283,14 +283,16 @@ $( document ).ready(function() {
...
@@ -283,14 +283,16 @@ $( document ).ready(function() {
}
}
});
});
// link toggle buttons
// link toggle buttons
$
(
"
.act_toggle
"
).
click
(
function
(){
$
(
"
.act_toggle
"
).
click
(
function
(
event
){
event
.
preventDefault
();
$
.
post
(
window
.
location
,
{
act
:
'
toggle
'
,
id
:
$
(
this
).
data
(
"
id
"
)},
function
(
data
)
{
$
.
post
(
window
.
location
,
{
act
:
'
toggle
'
,
id
:
$
(
this
).
data
(
"
id
"
)},
function
(
data
)
{
location
.
reload
();
location
.
reload
();
});
});
});
});
// link move buttons
// link move buttons
$
(
"
.act_move
"
).
click
(
function
(){
$
(
"
.act_move
"
).
click
(
function
(
event
){
event
.
preventDefault
();
$
(
"
#id
"
).
val
(
$
(
this
).
data
(
"
id
"
));
$
(
"
#id
"
).
val
(
$
(
this
).
data
(
"
id
"
));
$
(
"
#action
"
).
val
(
"
move
"
);
$
(
"
#action
"
).
val
(
"
move
"
);
$
(
"
#iform2
"
).
submit
();
$
(
"
#iform2
"
).
submit
();
...
@@ -348,7 +350,8 @@ $( document ).ready(function() {
...
@@ -348,7 +350,8 @@ $( document ).ready(function() {
$
(
"
#ntp_server_enable
"
).
change
();
$
(
"
#ntp_server_enable
"
).
change
();
$
(
"
#netbios_enable
"
).
change
();
$
(
"
#netbios_enable
"
).
change
();
}
}
// watch scroll position and set to last known on page load
watchScrollPosition
();
});
});
//]]>
//]]>
</script>
</script>
...
...
src/www/vpn_openvpn_server.php
View file @
f8233bd0
...
@@ -426,6 +426,8 @@ legacy_html_escape_form_data($pconfig);
...
@@ -426,6 +426,8 @@ legacy_html_escape_form_data($pconfig);
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
//
<!
[
CDATA
[
//
<!
[
CDATA
[
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
// watch scroll position and set to last known on page load
watchScrollPosition
();
// link delete buttons
// link delete buttons
$
(
"
.act_delete
"
).
click
(
function
(){
$
(
"
.act_delete
"
).
click
(
function
(){
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
var
id
=
$
(
this
).
attr
(
"
id
"
).
split
(
'
_
'
).
pop
(
-
1
);
...
@@ -450,7 +452,8 @@ $( document ).ready(function() {
...
@@ -450,7 +452,8 @@ $( document ).ready(function() {
});
});
// link toggle buttons
// link toggle buttons
$
(
"
.act_toggle
"
).
click
(
function
(){
$
(
"
.act_toggle
"
).
click
(
function
(
event
){
event
.
preventDefault
();
$
.
post
(
window
.
location
,
{
act
:
'
toggle
'
,
id
:
$
(
this
).
data
(
"
id
"
)},
function
(
data
)
{
$
.
post
(
window
.
location
,
{
act
:
'
toggle
'
,
id
:
$
(
this
).
data
(
"
id
"
)},
function
(
data
)
{
location
.
reload
();
location
.
reload
();
});
});
...
...
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