mirror of https://github.com/MISP/MISP
chg: [dashboard] cleanup
prevent @mokaddem's and @rommelfs's eyes from bleedingpull/5635/head
parent
1fe4d0dd57
commit
c0e25c28ad
|
@ -8,14 +8,11 @@
|
|||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
<?php
|
||||
if ($config['autoRefreshDelay']) {
|
||||
echo sprintf(
|
||||
'setTimeout( function(){ updateDashboardWidget($("#widgetContentInner%s").parent().parent().parent())}, %s);',
|
||||
$randomId,
|
||||
$config['autoRefreshDelay'] . '000'
|
||||
if (<?= $config['autoRefreshDelay'] ?>) {
|
||||
setTimeout( function(){
|
||||
updateDashboardWidget($("#widgetContentInner<?= $randomId ?>").closest('.grid-stack-item'))},
|
||||
<?= $config['autoRefreshDelay'] ?> * 1000
|
||||
);
|
||||
}
|
||||
?>
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue