MDL-63094 tool_policy: Fix race condition in modal display
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 8 Aug 2018 01:58:22 +0000 (09:58 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 22 Aug 2018 02:23:30 +0000 (10:23 +0800)
commit4b6780417e5c8de14e9a1eeb1d768f6271f2a852
treefc31e8375dfc28d6f70a361860bbdb58f61db0f6
parenta9428fab113c47b8468d4b736254db118683c527
MDL-63094 tool_policy: Fix race condition in modal display

The way in which the modal was displayed meant that there were no
pending JS items, whilst the modal was rendered, causing random behat
fails.

This JS has been restructured to create the Modal and pass it a set of
Promises for both the title, and body.
admin/tool/policy/amd/build/policyactions.min.js
admin/tool/policy/amd/src/policyactions.js