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>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
<?php
|
if (<?= $config['autoRefreshDelay'] ?>) {
|
||||||
if ($config['autoRefreshDelay']) {
|
setTimeout( function(){
|
||||||
echo sprintf(
|
updateDashboardWidget($("#widgetContentInner<?= $randomId ?>").closest('.grid-stack-item'))},
|
||||||
'setTimeout( function(){ updateDashboardWidget($("#widgetContentInner%s").parent().parent().parent())}, %s);',
|
<?= $config['autoRefreshDelay'] ?> * 1000
|
||||||
$randomId,
|
);
|
||||||
$config['autoRefreshDelay'] . '000'
|
}
|
||||||
);
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue