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));