fix: [js] fixed invalid defaults passed from php

pull/5635/head
iglocska 2020-03-05 10:16:10 +01:00
parent 5e56e7dfc7
commit 60640f4916
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 2 deletions

View File

@ -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
);
}
});