Andrew Nicols
23e347bb32
MDL-64181 core: Ensure that self is included in parentage
2018-11-27 14:42:40 +08:00
Damyon Wiese
a2cb00b655
MDL-64181 javascript: Recursive template fix
...
This change prevents template rendering from waiting for itself, but does
allow it to wait for another async call to render.
2018-11-27 08:44:36 +08:00
Andrew Nicols
ff85fe3e53
Merge branch 'MDL-63793-master' of git://github.com/peterRd/moodle
2018-11-19 09:57:50 +08:00
Peter
11988d74b4
MDL-63793 block_myoverview: Persist the user's paging limit preference
...
* providers for paging preferences
* Moved the user pref persistence to the factory
* Added client defined namespace in config
* Define custom client events in the client instead of passing to the
factory
2018-11-19 09:43:00 +08:00
Ryan Wyllie
5005d8cfb4
MDL-63303 message: add message drawer (boost only)
2018-11-15 14:43:21 +08:00
Ryan Wyllie
9d199fd2e7
MDL-63303 javascript: fix bug in auto_rows.js allowing it to shrink
2018-11-15 14:40:11 +08:00
Andrew Nicols
6d0a43deb9
Merge branch 'MDL-63763-master' of https://github.com/nwp90/moodle
2018-11-12 10:32:32 +08:00
Peter
fd955097e4
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
2018-11-01 13:36:52 +08:00
Bas Brands
fd68f5a9e0
MDL-63457 block_myoverview: Rerender the paged content and jump
...
Jump to the page the user was last on after hiding
2018-10-29 08:36:59 +08:00
Nick Phillips
2070142f46
MDL-63763 javascript: don't have define( in AMD comments at top of files
2018-10-25 16:21:35 +13:00
Eloy Lafuente (stronk7)
19dbce00a1
Merge branch 'MDL-63714-master' of git://github.com/andrewnicols/moodle
2018-10-25 00:10:45 +02:00
Andrew Nicols
eb514bb3e5
MDL-63714 javascript: Add new core/pending module
2018-10-24 12:49:09 +08:00
Andrew Nicols
66de50c366
Merge branch 'wip-MDL-62411-master' of https://github.com/timhunt/moodle
2018-10-24 10:21:42 +08:00
Andrew Nicols
4b7ad8845c
MDL-63714 core: Wrap doRender in pendingjs
2018-10-24 08:12:10 +08:00
David Monllao
d10643fbe6
Merge branch 'MDL-63625-master' of git://github.com/marinaglancy/moodle
2018-10-22 14:41:12 +02:00
Tim Hunt
ed7e30fa5c
MDL-62411 qtype_ddmarker: further improvements following code review
2018-10-20 15:18:17 +01:00
John Beedell
0b1cc2890f
MDL-62411 qtype_ddmarker: add dragdrop helper libarary
...
This was created by the Open University a couple of years ago, and is
very helpful for making dragging work reliably on a range of browsers
and with both mouse and touch-screens.
Sadly, HTML5 drag-drop is not yet ready for prime-time.
2018-10-20 15:15:23 +01:00
Andrew Nicols
61e0f58ca3
MDL-63667 amd: Check for parent template recursion
2018-10-18 12:04:19 +08:00
Damyon Wiese
b51c5b929f
MDL-63667 output: Fix for recursive templates
...
A template can include itself - e.g. by looping over the context children and rendering a tree.
Ensure this promise still resolves.
Example: admin/tool/lp/templates/competencies_tree.mustache.
2018-10-18 10:48:01 +08:00
Ryan Wyllie
0015f5b8f1
MDL-63667 javascript: fix failed to pre-fetch the template error
2018-10-17 13:49:25 +08:00
Marina Glancy
d8c50267b9
MDL-63625 core: sortable_list iOS scrolling
...
For iOS we need to register non passive events not only for touchstart but also for touchmove
and touchend. Also iOS could open two move dialogue windows instead of one
2018-10-11 15:08:46 +02:00
Marina Glancy
f7d1a24eee
MDL-51803 core: sortable list not passive touch events
...
Some browsers do not support options passed to the event browsers. Check if browser
supports it before adding options.
2018-10-10 12:34:46 +02:00
Marina Glancy
5c170231dd
MDL-51803 core: encourage use drag handle in sortable list
2018-10-10 11:32:32 +02:00
Marina Glancy
261a3a3085
MDL-51803 core: sortable list, fix for touch devices
2018-10-09 16:05:39 +02:00
David Monllao
b43f926b44
MDL-51803 autoscroll: Fix incorrect reference to function
2018-10-09 13:58:51 +02:00
David Monllao
ce49b96586
Merge branch 'MDL-51803-master-mouse' of git://github.com/marinaglancy/moodle
2018-10-09 13:53:29 +02:00
Marina Glancy
e3c2a1bb3a
MDL-51803 core: fix for touchstart
2018-10-09 13:28:39 +02:00
Marina Glancy
e134ad7b38
MDL-51803 core: sortable list singleton
2018-10-09 13:28:33 +02:00
Marina Glancy
dbe5689ef1
MDL-51803 core: integration review
2018-10-08 11:50:47 +02:00
Marina Glancy
6b9cb2481c
MDL-51803 core: integration review
2018-10-08 11:50:47 +02:00
Marina Glancy
539cb25050
MDL-51803 core: reusable element for sorting lists
2018-10-08 11:50:47 +02:00
Marina Glancy
a21d34776b
MDL-51803 core: autoscroll module from OU
2018-10-08 11:50:47 +02:00
Adrian Greeve
ff40c7d374
MDL-62491 navigation: Update to tree.js to allow callbacks.
2018-10-08 09:00:08 +08:00
Ryan Wyllie
2c13ae01d9
MDL-63044 javascript: improve paged content widget
2018-09-27 13:10:45 +08:00
Ryan Wyllie
119c0124c4
MDL-63044 javascript: add getUserMidnightForTimestamp to user_date
2018-09-27 13:09:23 +08:00
Ryan Wyllie
6e403eb62f
MDL-63044 javascript: add global helper for dropdowns
2018-09-27 13:09:23 +08:00
Ryan Wyllie
d4e8e94025
MDL-63044 javascript: add simple pubsub implementation
2018-09-27 13:09:23 +08:00
David Mudrák
5cdf8d49c7
MDL-62848 form: Fix missing support for {{#js}} helper in autocomplete
...
The form-autocomplete module uses three Mustache templates
core/form_autocomplete_input, core/form_autocomplete_suggestions and
core/form_autocomplete_selection. However, it did not support executing
the JS that is eventually part of those templates.
2018-08-31 14:51:05 +02:00
Eloy Lafuente (stronk7)
1766184e97
Merge branch 'MDL-63094-master' of git://github.com/andrewnicols/moodle
2018-08-28 23:53:58 +02:00
Mark Nelson
ce1db1f7db
MDL-63210 core: convert for loop to forEach in JS
2018-08-24 11:31:32 +08:00
Andrew Nicols
4d1a42fb7c
MDL-63094 js: Do not check visibility before hiding backdrop
...
It's possible for the backdrop to be created during the show, before the
modal is actually fully shown.
This check is unnecessary because the getBackdrop() function always
returns a value and will always succeed.
2018-08-22 10:23:30 +08:00
David Matamoros
18e2f40377
MDL-58409 core_form: needs clean in autocomplete element
2018-08-07 10:59:34 +02:00
Eloy Lafuente (stronk7)
75d4e6c4f1
Merge branch 'MDL-54551_master' of git://github.com/markn86/moodle
2018-07-25 00:26:16 +02:00
Mark Nelson
feb6a52035
MDL-54551 core: touch-up after review
...
1. Reworded the string.
2. Removed logic handling form data.
3. Do not use window.location.replace.
2018-07-18 18:08:37 +08:00
Thom Rawson
acf94de6d5
MDL-54551 core: AJAX call redirects to login page when session expired
2018-07-18 18:07:16 +08:00
David Mudrák
9411beb384
MDL-60874 core_form: allow autocomplete AJAX handlers return a string
...
Custom AJAX handlers for the form autocomplete fields can now optionally
return string in their processResults() callback. If a string is
returned, it is displayed instead of the list of suggested items.
The string is displayed same way as we inform about no available
suggestions.
2018-07-16 21:27:25 +02:00
Jun Pataleta
65cac80088
MDL-62746 tag: Convert YUI modals to AMD modals
2018-07-06 12:34:23 +08:00
Jun Pataleta
d7ae1a92b1
MDL-62746 tag: Make forms in tag modals use proper BS classes
2018-07-06 10:14:04 +08:00
Luca Bösch
e6914883ed
MDL-61894 tag: Modal buttons style.
2018-06-14 17:34:29 +02:00
Treu Quan
30e1f5a023
MDL-60207 javascript: close modal when user touch/click outside it
2018-05-29 10:04:37 +08:00