MDL-65770 tool_policy: Add Moodle changes for guest policy popup
authorMathew May <mathewm@hotmail.co.nz>
Thu, 13 Jun 2019 05:25:35 +0000 (13:25 +0800)
committerMathew May <mathewm@hotmail.co.nz>
Thu, 13 Jun 2019 05:25:35 +0000 (13:25 +0800)
admin/tool/policy/amd/build/jquery-eu-cookie-law-popup.min.js
admin/tool/policy/amd/src/jquery-eu-cookie-law-popup.js
admin/tool/policy/readme_moodle.txt

index 041f9cc..1ed6d8b 100644 (file)
Binary files a/admin/tool/policy/amd/build/jquery-eu-cookie-law-popup.min.js and b/admin/tool/policy/amd/build/jquery-eu-cookie-law-popup.min.js differ
index 682fb7e..379c3c4 100644 (file)
@@ -13,8 +13,7 @@
  * http://www.wimagguc.com/\r
  *\r
  */\r
-\r
-(function($) {\r
+define(['jquery'], function($) {\r
 \r
 // for ie9 doesn't support debug console >>>\r
 if (!window.console) window.console = {};\r
@@ -249,19 +248,4 @@ $.fn.euCookieLawPopup = (function() {
 \r
        return publicfunc;\r
 });\r
-\r
-$(document).ready( function() {\r
-       if ($(".eupopup").length > 0) {\r
-               $(document).euCookieLawPopup().init({\r
-                       'info' : 'YOU_CAN_ADD_MORE_SETTINGS_HERE',\r
-                       'popupTitle' : 'This website is using cookies. ',\r
-                       'popupText' : 'We use them to give you the best experience. If you continue using our website, we\'ll assume that you are happy to receive all cookies on this website.'\r
-               });\r
-       }\r
-});\r
-\r
-$(document).bind("user_cookie_consent_changed", function(event, object) {\r
-       console.log("User cookie consent changed: " + $(object).attr('consent') );\r
 });\r
-\r
-}(jQuery));\r
index 74794c5..a4241d9 100644 (file)
@@ -1,4 +1,4 @@
-jQuery EU Cookie Law popups 1.0.1
+jQuery EU Cookie Law popups 1.1.2
 -------------
 https://github.com/wimagguc/jquery-eu-cookie-law-popup
 
@@ -53,4 +53,4 @@ $(document).bind("user_cookie_consent_changed", function(event, object) {
    Add "tool_policy styles" to the end of the styles file.
 
 4. Execute grunt to compile js
-   grunt js
+   grunt amd