Andrew Nicols
aad94d9332
MDL-64181 core: Ensure that self is included in parentage
2018-11-27 14:47:34 +08:00
Damyon Wiese
60b951eca5
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:45:15 +08:00
Andrew Nicols
c85128260f
MDL-63714 javascript: Add new core/pending module
2018-10-24 08:43:50 +08:00
Andrew Nicols
527f895e93
MDL-63714 core: Wrap doRender in pendingjs
2018-10-24 08:43:50 +08:00
Andrew Nicols
b26c30d8f9
MDL-63667 amd: Check for parent template recursion
2018-10-18 12:11:52 +08:00
Damyon Wiese
ac1c36c728
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:52:06 +08:00
Ryan Wyllie
6185c3455a
MDL-63667 javascript: fix failed to pre-fetch the template error
2018-10-17 13:53:20 +08:00
Adrian Greeve
bb76ffff21
MDL-62491 navigation: Update to tree.js to allow callbacks.
2018-10-09 09:40:06 +08:00
David Mudrák
6aaf582982
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:55:08 +02:00
Eloy Lafuente (stronk7)
6f0614ef19
Merge branch 'MDL-63094-35' of git://github.com/andrewnicols/moodle into MOODLE_35_STABLE
2018-08-29 00:20:29 +02:00
Mark Nelson
b5c2fef399
MDL-63210 core: convert for loop to forEach in JS
2018-08-24 11:34:17 +08:00
Mark Nelson
2e7dbfaabb
MDL-63210 core: touch-up after review
...
1. Reworded the string.
2. Removed logic handling form data.
3. Do not use window.location.replace.
Backport of MDL-54551.
2018-08-23 12:38:57 +08:00
Thom Rawson
d6e31537bc
MDL-63210 core: AJAX call redirects to login page when session expired
...
Backport of MDL-54551.
2018-08-23 12:36:47 +08:00
Andrew Nicols
9d349b8170
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:27:27 +08:00
David Matamoros
aba27d5317
MDL-58409 core_form: needs clean in autocomplete element
2018-08-07 11:03:04 +02:00
David Mudrák
73df15dd67
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:25:40 +02:00
Jun Pataleta
016e029ea6
MDL-62746 tag: Make forms in tag modals use proper BS classes
2018-06-19 23:01:25 +08:00
Luca Bösch
fab105578b
MDL-61894 tag: Modal buttons style.
2018-06-14 17:32:40 +02:00
Andrew Nicols
f59bc1b152
MDL-62500 tag: Update checkbox label when updating tag
2018-05-21 13:46:49 +02:00
Bas Brands
ae0629d284
MDL-62171 Theme boost: modal accessibility focus
2018-05-03 11:54:26 +02:00
David Monllao
c5a8065258
Merge branch 'MDL-61028-master' of https://github.com/sammarshallou/moodle
2018-04-23 13:09:53 +02:00
sam marshall
a97c937033
MDL-61028 core_form: Autocomplete field to support HTML selection
...
When using the AJAX autocomplete field, it allows JavaScript to add
custom HTML to selected options. For example, the user field from
the assign roles page includes an icon and other information by the
user's name.
Once you submit the form and the page reloads, there was no way to
provide this information back to the autocomplete field. HTML
<option> tag was used for the value names but it may only contain
text, not tags, so including it in the normal value did not work.
This change adds a new option for the autocomplete field that lets
you include HTML to override the default (text-only) value of the
label used to represent each option.
2018-04-20 16:42:54 +01:00
Ryan Wyllie
4ab09853f4
MDL-61138 javascript: add paged content widget
2018-04-18 11:45:00 +08:00
Ryan Wyllie
2803c8683b
MDL-61138 javascript: add preshow callback to modal factory
2018-04-18 11:19:37 +08:00
Ryan Wyllie
90d8c85ec3
MDL-61138 javascript: stop duplicate custom events firing
2018-04-18 11:19:37 +08:00
Andrew Nicols
1c406559b8
Merge branch 'MDL-60848_master' of https://github.com/markn86/moodle
2018-04-13 13:54:24 +08:00
Mark Nelson
44946baf04
MDL-60848 core: added instructions on how to update adapter.js
2018-04-13 12:59:24 +08:00
Mark Nelson
8be5742cb1
MDL-60848 core: updated adapter.js and moved to core
2018-04-13 11:46:51 +08:00
Bas Brands
fd70f25519
MDL-61852 core: downgrade popper to version 1.12.6 fixing usertours positioning issues
2018-04-12 07:02:14 +02:00
Marina Glancy
5714c88b5f
MDL-61852 core: 3rd party lib include cleanup
2018-04-09 12:27:45 +08:00
Bas Brands
ea33609e4b
MDL-61852 lib: move popper.js to core
...
Popper is used in tool_usertours. Bootstrap 4 stable depends on popper too. Moving to /lib so both can use a single popper.js lib
2018-04-09 12:08:48 +08:00
cescobedo
00a7511580
MDL-61451 message_area: core/auto_rows remove set height to 1px
2018-03-16 13:06:02 +01:00
Andrew Nicols
1e41e6ddd9
Merge branch 'MDL-61135-master' of git://github.com/ryanwyllie/moodle
2018-02-12 11:34:56 +08:00
Ryan Wyllie
2328bcccde
MDL-61135 javascript: fix modal body height resizing when loading
2018-02-02 03:57:25 +00:00
Simey Lameze
e63a39e013
MDL-61218 lib: set chart border color to white
2018-01-23 12:01:46 +08:00
Andrew Nicols
78162bf5cf
MDL-60773 core: Add pendingJS checks for autocomplete interactions
2017-11-17 13:52:04 +08:00
David Monllao
cae37299f3
Merge branch 'MDL-59758-master' of git://github.com/damyon/moodle
2017-11-07 12:37:30 +01:00
Damyon Wiese
b5b81de3d6
MDL-59758 core_user: Replace old bulk actions
...
The participants page has some clunky multi page forms for bulk actions. Replaces it with an ajax alternative.
2017-11-07 14:18:49 +08:00
Damyon Wiese
b9ae53f86b
MDL-59758 js: auto_rows module easier to use
...
Allow passing the direct text area, or a container.
Trigger change events on the text area, not the container.
Properly handle starting with rows > 1
2017-11-07 10:36:13 +08:00
Jun Pataleta
4cd3927c4f
MDL-59858 amd: Focus on the element that actually triggers the modal
2017-11-06 13:18:03 +13:00
David Monllao
6e3314f044
Merge branch 'MDL-60633-master' of git://github.com/andrewnicols/moodle
2017-11-02 12:04:07 +01:00
Andrew Nicols
314b8093e7
MDL-60633 core: Add pendingjs checks for inplace editable
2017-10-31 07:03:13 +08:00
Ryan Wyllie
368832d51c
MDL-59936 javascript: hide modal footer without content
2017-10-30 08:33:54 +08:00
Andrew Nicols
4c250a5b79
MDL-60489 javascript: Add missing promise fails
2017-10-23 20:26:57 +08:00
Ryan Wyllie
946f9d0a4e
MDL-60489 javascript: add animations to modal setBody
2017-10-23 07:57:03 +00:00
David Monllao
6bc6e460cd
Merge branch 'wip-MDL-60285-master' of git://github.com/abgreeve/moodle
2017-10-17 09:42:25 +02:00
Adrian Greeve
c32220b750
MDL-60285 lib: Update to Moodle changes to loglevel.
2017-10-17 10:22:00 +08:00
Adrian Greeve
07cf908e6c
MDL-60285 lib: Update loglevel to 1.5.1
2017-10-17 10:21:05 +08:00
Adrian Greeve
dc9c4c5141
MDL-60286 lib: Moodle additions to mustache.js
2017-10-09 09:43:47 +08:00
Adrian Greeve
5adc70b77a
MDL-60286 lib: Upgrade mustache.js to 2.3.0
2017-10-09 09:43:47 +08:00