MDL-70151 assign: Fix bulk change for behat
commite7bfbaf7b2d49d3f9dc2ceb7873cac73fce286fe
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 17 Dec 2019 02:44:32 +0000 (17 10:44 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 23 Nov 2020 03:12:03 +0000 (23 11:12 +0800)
treed184ccfb71ee06f185c58067290538c249148861
parent03e32198844213b076125fdc4fc3a8a7469da617
MDL-70151 assign: Fix bulk change for behat

Behat does not play well with confirmation dialogues and in some
situations it does not wait for the page to reload before starting the
next step.

This change adds a pending_js call which is only resolved if the cancel
button was pressed, otherwise it remains in-progress until the page
reloads resetting the entire state of it.
mod/assign/module.js