Commit graph

685 commits

Author SHA1 Message Date
Tim Hunt
be612e5f68 MDL-57680 form autocomplete: fix triggering change event 2020-04-26 13:23:42 +01:00
Tim Hunt
588b86fd49 MDL-57680 form autocomplete: let singleselects be cleared.
This was already working after ajax had refreshed the choices, it was just
broken on first page load.
2020-04-26 13:23:42 +01:00
David Thompson
5bc86614a2 MDL-68477 libraries: support for Chart.js legend options. 2020-04-23 09:23:21 +08:00
Shamim Rezaie
505cc918b7 MDL-68378 lib: Added accessibleChange custom event 2020-04-22 04:16:44 +10:00
David Thompson
ab0d409991 MDL-68386 libraries: Enhancement for Area Charts support with chart.js. 2020-04-17 09:12:41 +12:00
Adrian Greeve
50dbf7e9c8 Merge branch 'MDL-68196-master' of git://github.com/rezaies/moodle 2020-04-16 10:55:11 +08:00
Shamim Rezaie
517e568e5a MDL-68196 core: not expand autocomplete elements too soon on IE 2020-04-16 12:25:37 +10:00
Jun Pataleta
9183c0c91a MDL-67663 core: Do not use aria-hidden="false" on drawer
From https://www.w3.org/TR/wai-aria-1.1/#aria-hidden:
* "aria-hidden="false" is known to work inconsistently in browsers"
2020-04-09 17:50:09 +08:00
Andrew Nicols
604887ce8f MDL-67827 behat: Pending JS improvements for dialogues 2020-03-06 12:59:38 +08:00
Mathew May
e6a5298394 MDL-67264 lib modal: Add deffered promises to content promises 2020-02-13 09:15:41 +08:00
David Mudrák
7630b42232 MDL-67447 form: Fix the duplicate autocomplete selection node
When the autocomplete selection is updated, the content of the selection
wrapper is replaced with the new list of selected items. We must replace
only the content of the selection wrapper and not to nest it into
itself.
2020-01-25 05:39:01 +01:00
Andrew Nicols
1bb7d46966 Merge branch 'MDL-67378-master' of git://github.com/rezaies/moodle 2020-01-08 11:11:45 +08:00
Andrew Nicols
bc47535677 Merge branch 'MDL-67376-master' of git://github.com/rezaies/moodle 2020-01-08 10:40:25 +08:00
Jun Pataleta
53384db822 Merge branch 'MDL-63996-master' of git://github.com/andrewnicols/moodle 2019-12-31 15:19:24 +08:00
Eloy Lafuente (stronk7)
077fa38a32 Merge branch 'MDL-67381-master' of git://github.com/rezaies/moodle 2019-12-18 16:19:57 +01:00
Andrew Nicols
0bc0fa8795 MDL-63996 core/tags: Pending JS for all tag code 2019-12-18 12:02:40 +08:00
Shamim Rezaie
c1c74c7562 MDL-67378 libraries: Add Moodle modifications for Mustache 2019-12-16 18:54:06 +11:00
Shamim Rezaie
ce05b89997 MDL-67378 libraries: Upgrade mustache.js to 3.1.0 2019-12-16 18:52:14 +11:00
Shamim Rezaie
4bee39d31c MDL-67376 libraries: Upgrade loglevel.js to version 1.6.6 2019-12-11 21:28:52 +11:00
Shamim Rezaie
4fa17ba99b MDL-67381 lib: Upgrade to 7.3.0 2019-12-09 20:28:25 +11:00
Frédéric Massart
ef1a9a2135 MDL-67434 javascript: Use static get_string after recycling promise 2019-12-09 10:04:18 +08:00
Andrew Nicols
04e67878f9 MDL-67285 core: YUI dialogues must use focuslock
YUI Dialogues were using an older method for locking focus to modals,
but this way conflicts with the way in which we lock focus for AMD
modules.

As a result, when an AMD dialogue launches a YUI dialogue the focus is
not correctly locked and it is not possible to focus on anything in the
YUI dialogue.

This includes a minor changes to the focuslock AMD module to ensure that
it is possible to loop the focus in both directions. Many of our older
YUI dialogues are themselves focusable. As a result we need to include
the lock region in the calculation when calculating the possible
descendants.
If we do not do so then the reverse looping does not work.
2019-11-19 07:40:36 +08:00
Andrew Nicols
c50bc1bf7c MDL-67207 core: Use focus lock manager in modals 2019-11-13 14:30:54 +08:00
Andrew Nicols
dcdcc12cb2 MDL-67207 core: Add new ARIA focus locker
This is based on code and examples provided in the ARIA specification
https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html
2019-11-13 14:30:32 +08:00
Jun Pataleta
2e809ec27c Merge branch 'MDL-66893-master-3' of https://github.com/ryanwyllie/moodle 2019-11-08 11:59:44 +08:00
Ryan Wyllie
035bd996cb MDL-66893 mod_forum: show expand conversation in nested view 2019-11-07 14:53:37 +08:00
Andrew Nicols
b655690b04 MDL-67074 forum: Add a new toast region when in full screen mode 2019-11-05 12:10:51 +08:00
Andrew Nicols
224ea04e68 MDL-66828 core: Add toast-style notifications
Part of MDL-66074
2019-10-30 10:23:41 +08:00
Andrew Nicols
af9ca2a658 MDL-66077 core: Loadingicon needs jQuery nodes
Part of MDL-66074
2019-10-28 13:55:12 +08:00
Andrew Nicols
373d43aef1 MDL-66074 core: Add a renderForPromise function
Promises only take a single argument so this makes it easier to chain
promises and use them with await.
2019-10-28 13:55:12 +08:00
Ryan Wyllie
7b8d852929 MDL-65896 core: more IE11 fixes for emoji picker 2019-10-24 10:41:52 +08:00
Ryan Wyllie
628b4ca262 MDL-65896 core: fix emoji picker IE11 support 2019-10-23 15:25:27 +08:00
Jun Pataleta
b6fcec009e Merge branch 'MDL-65896-master' of https://github.com/ryanwyllie/moodle 2019-10-23 11:13:27 +08:00
Ryan Wyllie
e0d798477a MDL-65896 core: add emoji data to thirdpartylibs 2019-10-23 10:59:59 +08:00
Ryan Wyllie
75962db917 MDL-65896 core: create emoji auto complete 2019-10-23 10:59:59 +08:00
Ryan Wyllie
db65ba4564 MDL-65896 core: create emoji picker 2019-10-23 10:59:58 +08:00
Ryan Wyllie
a81651afa1 MDL-65896 javascript: add throttle and debounce util functions 2019-10-17 13:51:05 +08:00
Paul Holden
9cbeaec26f MDL-63125 forms: allow item removal from single-select autocomplete. 2019-10-14 17:07:59 +01:00
Jun Pataleta
fa278f052b Merge branch 'MDL-66725-master' of https://github.com/snake/moodle 2019-10-09 10:31:18 +08:00
Adrian Greeve
8fec1626d0 Merge branch 'MDL-66477-master' of git://github.com/junpataleta/moodle 2019-10-02 16:15:13 +08:00
Jake Dallimore
9a820e0af9 MDL-66725 core: fix language in str.js
When ommitted from the get_string() or get_strings() calls, it should be
inferring from the page language.
2019-10-01 13:53:59 +08:00
Tim Schroeder
f8f04b773d
MDL-66542 lib: Fix quote escaping in JS quote helper 2019-09-30 10:09:07 +02:00
Ryan Wyllie
b17bb71e88 MDL-66477 javascript: add toggle functionality to drawer 2019-09-27 15:46:15 +08:00
Ryan Wyllie
6d9c93560b MDL-66477 core: remove snakeCase block regions from drawer.mustache 2019-09-27 15:46:15 +08:00
Jun Pataleta
a2517225dc MDL-66477 core: Create a generic drawer template 2019-09-27 15:38:54 +08:00
Eloy Lafuente (stronk7)
164597248c Merge branch 'MDL-66293-master' of git://github.com/rezaies/moodle 2019-09-16 20:34:23 +02:00
Shamim Rezaie
74051d3b4b MDL-66293 javascript: set maximum paging bar size to 10 2019-09-12 14:23:56 +10:00
Shamim Rezaie
ffa329986c MDL-66293 javascript: Added support to set bar size for paging bars 2019-09-12 14:23:56 +10:00
Andrew Nicols
05abf2cf2f MDL-65493 core: Add pendingJS around pubsub.publish 2019-09-06 08:40:56 +08:00
Jake Dallimore
2796356278 Merge branch 'MDL-66367_master' of git://github.com/markn86/moodle 2019-09-05 09:26:28 +08:00