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
e6a2743a
Commit
e6a2743a
authored
Mar 05, 2015
by
Jos Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change image to glyphicon
parent
45a76711
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
status_filter_reload.php
src/www/status_filter_reload.php
+4
-6
No files found.
src/www/status_filter_reload.php
View file @
e6a2743a
...
@@ -72,7 +72,6 @@ include("head.inc");
...
@@ -72,7 +72,6 @@ include("head.inc");
<form
action=
"status_filter_reload.php"
method=
"post"
name=
"filter"
>
<form
action=
"status_filter_reload.php"
method=
"post"
name=
"filter"
>
<input
type=
"submit"
value=
"Reload Filter"
class=
"btn btn-primary"
name=
"reloadfilter"
id=
"reloadfilter"
/>
<input
type=
"submit"
value=
"Reload Filter"
class=
"btn btn-primary"
name=
"reloadfilter"
id=
"reloadfilter"
/>
<?php
if
(
$config
[
'hasync'
]
&&
$config
[
'hasync'
][
"synchronizetoip"
]
!=
""
)
:
?>
<?php
if
(
$config
[
'hasync'
]
&&
$config
[
'hasync'
][
"synchronizetoip"
]
!=
""
)
:
?>
<input
type=
"submit"
value=
"Force Config Sync"
class=
"btn btn-primary"
name=
"syncfilter"
id=
"syncfilter"
/>
<input
type=
"submit"
value=
"Force Config Sync"
class=
"btn btn-primary"
name=
"syncfilter"
id=
"syncfilter"
/>
<?php
endif
;
?>
<?php
endif
;
?>
</form>
</form>
...
@@ -109,15 +108,14 @@ function update_data(obj) {
...
@@ -109,15 +108,14 @@ function update_data(obj) {
result_text
=
result_text
.
replace
(
"
\n
"
,
""
);
result_text
=
result_text
.
replace
(
"
\n
"
,
""
);
result_text
=
result_text
.
replace
(
"
\r
"
,
""
);
result_text
=
result_text
.
replace
(
"
\r
"
,
""
);
if
(
result_text
)
{
if
(
result_text
)
{
jQuery
(
'
#status
'
).
html
(
'
<
img src="/themes/
<?=
$g
[
'theme'
];
?>
/images/misc/loader.gif" alt="loader" /
>
'
+
result_text
+
'
...
'
);
jQuery
(
'
#status
'
).
html
(
'
<
span class="glyphicon glyphicon-refresh"></span
>
'
+
result_text
+
'
...
'
);
}
else
{
}
else
{
jQuery
(
'
#status
'
).
html
(
'
<
img src="/themes/
<?=
$g
[
'theme'
];
?>
/images/misc/loader.gif" alt="loader" /
> Obtaining filter status...
'
);
jQuery
(
'
#status
'
).
html
(
'
<
span class="glyphicon glyphicon-refresh"></span
> Obtaining filter status...
'
);
}
}
if
(
result_text
==
"
Initializing
"
)
{
if
(
result_text
==
"
Initializing
"
)
{
jQuery
(
'
#status
'
).
html
(
'
<
img src="/themes/
<?=
$g
[
'theme'
];
?>
/images/misc/loader.gif" alt="loader" /
> Initializing...
'
);
jQuery
(
'
#status
'
).
html
(
'
<
span class="glyphicon glyphicon-refresh"></span
> Initializing...
'
);
}
else
if
(
result_text
==
"
Done
"
)
{
}
else
if
(
result_text
==
"
Done
"
)
{
jQuery
(
'
#status
'
).
effect
(
'
highlight
'
);
jQuery
(
'
#status
'
).
html
(
'
Done. The filter rules have been reloaded.
'
);
jQuery
(
'
#status
'
).
html
(
'
Done. The filter rules have been reloaded.
'
);
jQuery
(
'
#reloadinfo
'
).
css
(
"
visibility
"
,
"
hidden
"
);
jQuery
(
'
#reloadinfo
'
).
css
(
"
visibility
"
,
"
hidden
"
);
jQuery
(
'
#doneurl
'
).
css
(
"
visibility
"
,
"
visible
"
);
jQuery
(
'
#doneurl
'
).
css
(
"
visibility
"
,
"
visible
"
);
jQuery
(
'
#doneurl
'
).
html
(
"
<p><a href='status_queues.php'>Queue Status<
\
/a><
\
/p>
"
);
jQuery
(
'
#doneurl
'
).
html
(
"
<p><a href='status_queues.php'>Queue Status<
\
/a><
\
/p>
"
);
...
...
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