mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Disable page refresh on health sensors pages, autorefresh most tables (#9386)
* Disable page refresh on health sensors pages Refresh all bootgrid tables every 5 minutes * Update legacy_index.php * Update librenmsv1.blade.php
This commit is contained in:
committed by
Neil Lathwood
parent
518e5f06d3
commit
f439eb4f1d
@@ -290,3 +290,11 @@ function refresh_oxidized_node(device_hostname){
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
setInterval(function () {
|
||||
$('.bootgrid-table').each(function() {
|
||||
$(this).bootgrid('reload');
|
||||
});
|
||||
}, 300000);
|
||||
});
|
||||
|
@@ -135,7 +135,7 @@ foreach ((array)$config['webui']['custom_css'] as $custom_css) {
|
||||
}
|
||||
?>
|
||||
<script src="js/select2.min.js"></script>
|
||||
<script src="js/librenms.js?ver=20180511"></script>
|
||||
<script src="js/librenms.js?ver=20181028"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
<!-- Begin
|
||||
|
@@ -15,6 +15,8 @@
|
||||
* @author LibreNMS Contributors
|
||||
*/
|
||||
|
||||
$no_refresh = true;
|
||||
|
||||
$datas = array('mempool','processor','storage');
|
||||
if ($used_sensors['temperature']) {
|
||||
$datas[] = 'temperature';
|
||||
|
@@ -66,8 +66,8 @@
|
||||
<script src="js/jquery.lazyload.min.js"></script>
|
||||
<script src="js/lazyload.js"></script>
|
||||
@endif
|
||||
<script src="js/select2.min.js"></script>
|
||||
<script src="js/librenms.js?ver=20180512"></script>
|
||||
<script src="{{ asset('js/select2.min.js') }}"></script>
|
||||
<script src="{{ asset('js/librenms.js?ver=20181028') }}"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
<!-- Begin
|
||||
|
Reference in New Issue
Block a user