Permalink
Browse files

made initCallback optional

  • Loading branch information...
1 parent d43050f commit 6195686a4e808e2850edef8cb1d81f4bb01b4a25 @pulse00 pulse00 committed May 11, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 Resources/views/Analytics/dashboard.html.twig
@@ -8,6 +8,8 @@
'clientId':'{{ google_analytics.clientId }}',
'tableId': '{{ google_analytics.tableId }}'
});
-
- gadash.initCallback = {{ initCallback }};
+
+ {% if initCallback is defined %}
+ gadash.initCallback = {{ initCallback }};
+ {% endif %}
</script>

0 comments on commit 6195686

Please sign in to comment.