MDL-68056 core_course: improve render performance when editing
authorJake Dallimore <jake@moodle.com>
Wed, 26 Feb 2020 06:01:47 +0000 (14:01 +0800)
committerJake Dallimore <jake@moodle.com>
Mon, 16 Mar 2020 00:36:38 +0000 (08:36 +0800)
commitaa4d7e1391c1d63856b75f35440b41f6bba7fcf3
tree1cfc1ca77259bdd23a04897293cbcc6a307ff021
parent73f8c56dfca5dd4028845f1fbbaac0a83e43caf9
MDL-68056 core_course: improve render performance when editing

Only generate the non-ajax controls in cases where we know we need
them. Otherwise, only generate the new link style control. This patch
includes a behat check as many of our tests use the 'I add "Page" to
section "1"' syntax, which runs without JS.
course/renderer.php