From 3a14e9fd3a5f5dcde74712e7771c91dd14340622 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 25 May 2018 11:05:58 +0200 Subject: [PATCH] [FIX] Dashboard last block updates if sounds are globally disabled --- templates/bootstrap/dashboard/js/api.tpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/bootstrap/dashboard/js/api.tpl b/templates/bootstrap/dashboard/js/api.tpl index 79db539b..624ce253 100644 --- a/templates/bootstrap/dashboard/js/api.tpl +++ b/templates/bootstrap/dashboard/js/api.tpl @@ -193,9 +193,15 @@ $(document).ready(function(){ return; } if (blocks[0].height > lastBlock) { + {/literal} + {if $GLOBAL.website.blockfindersound.enabled|default:"1"} + {literal} if(canCreateSoundJS) { createjs.Sound.play('ding'); } + {/literal} + {/if} + {literal} lastBlock = blocks[0].height; var table_content = ''; for (index = 0; index < blocks.length; ++index) {