[FIX] Dashboard last block updates if sounds are globally disabled

This commit is contained in:
Sebastian Grewe 2018-05-25 11:05:58 +02:00
parent bbe7ac16a6
commit 3a14e9fd3a

View File

@ -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 = '<tbody id="b-blocks">';
for (index = 0; index < blocks.length; ++index) {