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
80d2d039
Commit
80d2d039
authored
May 09, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(dashboard) remove javascript hook, set timeout, change widget load text
parent
4da39cab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
index.php
src/www/index.php
+2
-10
No files found.
src/www/index.php
View file @
80d2d039
...
@@ -236,7 +236,7 @@ include("fbegin.inc");?>
...
@@ -236,7 +236,7 @@ include("fbegin.inc");?>
}
}
});
});
// schedule next update
// schedule next update
setTimeout
(
'process_widget_data()'
,
10
000
);
setTimeout
(
'process_widget_data()'
,
5
000
);
});
});
}
}
</
script
>
</
script
>
...
@@ -378,9 +378,7 @@ include("fbegin.inc");?>
...
@@ -378,9 +378,7 @@ include("fbegin.inc");?>
<?php
<?php
if
(
$divdisplay
!=
"block"
)
:?>
if
(
$divdisplay
!=
"block"
)
:?>
<
div
id
=
"<?=
$widgetItem['name']
?>-loader"
style
=
"display:<?=
$display
?>;"
>
<
div
id
=
"<?=
$widgetItem['name']
?>-loader"
style
=
"display:<?=
$display
?>;"
>
<
br
/>
&
nbsp
;
&
nbsp
;
<
span
class
="
glyphicon
glyphicon
-
refresh
"></span> <?= gettext("
Save
to
load
widget
") ?>
<
span
class
="
glyphicon
glyphicon
-
refresh
"></span> <?= gettext("
Loading
selected
widget
") ?>
<br />
</div>
</div>
<?php
<?php
else:
else:
...
@@ -399,12 +397,6 @@ include("fbegin.inc");?>
...
@@ -399,12 +397,6 @@ include("fbegin.inc");?>
</div>
</div>
</div>
</div>
</section>
</section>
<?php
// include widget javascripts
foreach (glob("
/
usr
/
local
/
www
/
widgets
/
javascript
/*.
js
") as
$filename
):?>
<script src="
/
widgets
/
javascript
/<?=
basename
(
$filename
);
?>
" type="text/javascript">
</script>
<?php
endforeach
;
?>
<?php
<?php
endif;
endif;
include("
foot
.
inc
");?>
include("
foot
.
inc
");?>
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