MDL-67513 core: Only move modal to body if currently attached
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 16 Nov 2020 07:19:28 +0000 (15:19 +0800)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 16 Nov 2020 08:37:48 +0000 (09:37 +0100)
commitbe2afb52c1fdeaa6063bc86b64d1901a06aa0d88
treeb3e9f6b74ce7ce7e59c2c7a03a259ea1b3784378
parentd661fbfbc1363eed9c961358217a0b1ea7700d66
MDL-67513 core: Only move modal to body if currently attached

A previous change as part of this commitset was intended to move the
modal to the document.body, but where the modal had been destroyed it
was instead added back to the body.
lib/amd/build/modal.min.js
lib/amd/build/modal.min.js.map
lib/amd/build/modal_backdrop.min.js
lib/amd/build/modal_backdrop.min.js.map
lib/amd/src/modal.js
lib/amd/src/modal_backdrop.js