MDL-63457 block_myoverview: JS update to avoid constant network requests
authorPeter <peter@moodle.com>
Tue, 30 Oct 2018 01:46:00 +0000 (09:46 +0800)
committerPeter <peter@moodle.com>
Thu, 1 Nov 2018 05:36:52 +0000 (13:36 +0800)
commitfd955097e4a4f059f4c7ae48ddb59a0977dcbcbc
tree9bfe48ff18c18b760bf639a31a93f690d98ae400
parent7dcb274c9e31689f430d191fcdd3880734641cc2
MDL-63457 block_myoverview: JS update to avoid constant network requests

* Expose paged content factory to trigger last page updates
* Remove repetitive network requests on hide/show courses
* Manually do paged dataset modification
16 files changed:
blocks/myoverview/amd/build/main.min.js
blocks/myoverview/amd/build/selectors.min.js [new file with mode: 0644]
blocks/myoverview/amd/build/view.min.js
blocks/myoverview/amd/build/view_nav.min.js
blocks/myoverview/amd/src/main.js
blocks/myoverview/amd/src/selectors.js [new file with mode: 0644]
blocks/myoverview/amd/src/view.js
blocks/myoverview/amd/src/view_nav.js
blocks/myoverview/classes/privacy/provider.php
blocks/myoverview/tests/behat/block_myoverview_hidden.feature
lib/amd/build/paged_content.min.js
lib/amd/build/paged_content_factory.min.js
lib/amd/build/paged_content_pages.min.js
lib/amd/src/paged_content.js
lib/amd/src/paged_content_factory.js
lib/amd/src/paged_content_pages.js