Commit b35960b0 authored by Robert Lyon's avatar Robert Lyon Committed by Cecilia Vela Gurovic

Bug 1803616: SyntaxError: expected expression, got ';'

Needing to check if we have $timeleft before displaying the js for it

behatnotneeded
Change-Id: I7ac1b4fd31238b51e5e2200b37f4aed2cd275eec
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent c2b7b52e
......@@ -5,6 +5,7 @@
{/if}
<h2>{$subheading}</h2>
{if $timeleft}
<script type='application/javascript'>
// Set the number we're counting down from
var countfrom = {$timeleft};
......@@ -20,6 +21,7 @@ var x = setInterval(function() {
}
}, 60000);
</script>
{/if}
{$editform|safe}
{include file="footer.tpl"}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment