1
0

fix wysiwyg-Spawnnugget() - fixes #92

This commit is contained in:
Ian
2014-03-11 19:14:17 +01:00
parent 390ec689c2
commit 544d0bf7b4

View File

@ -50,13 +50,18 @@
{/if}
{if $spawnNuggets}
{serendipity_hookPlugin hook="backend_wysiwyg_nuggets" eventData=$ev hookAll=true}
{if ($ev['skip_nuggets'] === false)}
{if $ev['skip_nuggets'] === false}
<script>
function Spawnnugget() {
{foreach $htmlnugget AS $htmlnuggetid}
Spawnnuggets('{$htmlnuggetid}');
function Spawnnugget() {
{foreach $ev['nuggets'] AS $nuggetid}
if (window.Spawnnuggets) Spawnnuggets('{$nuggetid}');
{/foreach}
}
}
</script>
{/if}
{/if}