[FIX] Dashboard last block updates if sounds are globally disabled
This commit is contained in:
parent
bbe7ac16a6
commit
3a14e9fd3a
@ -193,9 +193,15 @@ $(document).ready(function(){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (blocks[0].height > lastBlock) {
|
if (blocks[0].height > lastBlock) {
|
||||||
|
{/literal}
|
||||||
|
{if $GLOBAL.website.blockfindersound.enabled|default:"1"}
|
||||||
|
{literal}
|
||||||
if(canCreateSoundJS) {
|
if(canCreateSoundJS) {
|
||||||
createjs.Sound.play('ding');
|
createjs.Sound.play('ding');
|
||||||
}
|
}
|
||||||
|
{/literal}
|
||||||
|
{/if}
|
||||||
|
{literal}
|
||||||
lastBlock = blocks[0].height;
|
lastBlock = blocks[0].height;
|
||||||
var table_content = '<tbody id="b-blocks">';
|
var table_content = '<tbody id="b-blocks">';
|
||||||
for (index = 0; index < blocks.length; ++index) {
|
for (index = 0; index < blocks.length; ++index) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user