From 5faa6dbe5550d34ad3639067493210131806a253 Mon Sep 17 00:00:00 2001 From: Milan Jelicanin Date: Mon, 7 Jan 2019 12:12:11 +0100 Subject: [PATCH] Update JS template Fix #10 --- templates/CookiePolicyJSSnippet.ss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/CookiePolicyJSSnippet.ss b/templates/CookiePolicyJSSnippet.ss index 2af9dcb..f8a2989 100755 --- a/templates/CookiePolicyJSSnippet.ss +++ b/templates/CookiePolicyJSSnippet.ss @@ -1,3 +1,5 @@ -$(document).ready(function() { - $('body').cookieNotify({btnText: '$CookiePolicyButtonTitle', text: '$CookiePolicyDescription.RAW', position: '$CookiePolicyPosition'}); -}); +(function ($) { + $(document).ready(function() { + $('body').cookieNotify({btnText: '$CookiePolicyButtonTitle', text: '$CookiePolicyDescription.RAW', position: '$CookiePolicyPosition'}); + }); +}(jQuery));