MDL-65788 tool_policy: Prevent two modals rendering for guests.
authorMathew May <mathewm@hotmail.co.nz>
Wed, 12 Jun 2019 07:24:48 +0000 (15:24 +0800)
committerMathew May <mathewm@hotmail.co.nz>
Sun, 14 Jul 2019 10:52:27 +0000 (18:52 +0800)
commit25d31d43b733b7a9524f7578acb233e0617b3dcf
tree1f9ff133c1c462e6e3f8a48d02bf568e0c594cc8
parentf7e108438f0dbe2ae1b12f7c3ccac5ceef7d9524
MDL-65788 tool_policy: Prevent two modals rendering for guests.

With the Guest registration calling policyactions.js the [data-action="view"]
was having two click handlers set on the inital policy modal trgger.
With this commit we state what we want the click event to be set on.
admin/tool/policy/amd/build/policyactions.min.js
admin/tool/policy/amd/src/policyactions.js
admin/tool/policy/classes/form/accept_policy.php
admin/tool/policy/templates/guestconsent.mustache
admin/tool/policy/templates/page_agreedocs.mustache
admin/tool/policy/templates/page_nopermission.mustache