mirror of https://github.com/MISP/MISP
fix: [js] fixed invalid defaults passed from php
parent
5e56e7dfc7
commit
60640f4916
|
@ -8,10 +8,10 @@
|
|||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
if (<?= $config['autoRefreshDelay'] ?>) {
|
||||
if (<?= $config['autoRefreshDelay'] ? 'true' : 'false' ?>) {
|
||||
setTimeout( function(){
|
||||
updateDashboardWidget($("#widgetContentInner<?= $randomId ?>").closest('.grid-stack-item'))},
|
||||
<?= $config['autoRefreshDelay'] ?> * 1000
|
||||
<?= $config['autoRefreshDelay'] ? $config['autoRefreshDelay'] : 1 ?> * 1000
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue