Commit Graph

677 Commits

Author SHA1 Message Date
Huong Nguyen 023ac9229f MDL-72523 javascript: Introduce setReturnElement for core/modal 2022-12-28 11:14:50 +00:00
Andrew Nicols ec6d835341 Merge branch 'MDL-76491-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE 2022-12-08 08:12:55 +08:00
Lars Bonczek 3afa59e702 MDL-75516 core: Perform proper JSON encoding in mustache quote helper 2022-12-02 13:37:33 +01:00
Paul Holden b729d36baf MDL-76491 javascript: add missing core/notification imports. 2022-12-02 10:06:27 +00:00
Sara Arjona bf0bf4be24 Merge branch 'MDL-72828-400' of https://github.com/davewoloszyn/moodle into MOODLE_400_STABLE 2022-10-21 16:24:47 +02:00
David Woloszyn 90553e9f6e MDL-72828 js: get_strings supports jquery objects 2022-10-21 15:02:33 +11:00
sam marshall d450c5931b MDL-75834 lib: Focus lock JS bug when focus area removed 2022-10-10 16:35:21 +01:00
Andrew Nicols 21e1d60833 Merge branch 'MDL-74922_MOODLE_400_STABLE_fix_storage_wrapper_validate_cache' of https://github.com/gthomas2/moodle into MOODLE_400_STABLE 2022-09-29 12:06:28 +08:00
Huong Nguyen f2fc73c674 MDL-74701 core: Fix popover elements are focusable even when hidden 2022-06-13 09:45:28 +07:00
gthomas2 137cfc18ee MDL-74922 javascript: storragewrapper validateCache fix 2022-06-08 09:34:20 +01:00
Jun Pataleta c1c52cfddd Merge branch 'MDL-73556-master' of https://github.com/ferranrecio/moodle 2022-03-24 23:50:07 +08:00
Ferran Recio bf642fb6fc MDL-73556 core_courseformat: fix course index click toggle
When the user clicks on a course index chevron the section is toggled.
However, when clicks on the section name the section is expanded but
never collapsed.
2022-03-18 14:39:32 +01:00
Jun Pataleta 8c07f33d80 Merge branch 'MDL-72481-master' of https://github.com/rezaies/moodle 2022-03-16 11:45:40 +08:00
Shamim Rezaie ef84c1607d MDL-72481 core: prevent loosing the tick next to selected dropdown itme
prevent loosing the tick when user clicks on the toggle button
or when they Press Esc to close the dropdown.
2022-03-15 12:48:22 +11:00
Shamim Rezaie 50c8bf68a8 MDL-72481 core: Make more menu tabbable when the active tab moves inside 2022-03-15 12:48:22 +11:00
Sujith Haridasan 1168e5fff1 MDL-72481 core: Fix the keyboard navigation in RTL
Also updated e.keyCode to e.key because keyCode is deprecated.

Co-authored-by: Shamim Rezaie <shamim@moodle.com>
2022-03-15 12:48:22 +11:00
Shamim Rezaie 4489132505 MDL-72481 core: only move through visible tabs 2022-03-15 12:48:22 +11:00
Jun Pataleta 1f21daf8b3 MDL-72481 core: Fix more menu keyboard navigation
* Allow the more menu to be rendered as a tablist when needed.
* Let menu_navigation handle keyboard navigation only when
menu items are not rendered as dropdowns. Otherwise, leave
the keyboard navigation handling via the default handlers
(e.g. dropdown.js/aria.js/tab.js).
* When the more menu is rendered as a tablist, use aria-selected
for the selected tab. When it's rendered as a menu, use aria-current
for the selected menu item. (The menuitem role supports aria-current and
not aria-selected)
* Make sure that the active tab is tabbable by default.
* Submenu items should always have tabindex=-1
* Update behat to use css_element instead of xpath. Also, improved it
to consider that it is the active element that should be tabbable.

Co-authored-by: Shamim Rezaie <shamim@moodle.com>
2022-03-15 12:48:21 +11:00
Amaia Anabitarte 329586411d MDL-74131 tags: Fix flagged tags color contrast 2022-03-14 09:59:13 +01:00
Huong Nguyen 0d4069918e MDL-73457 Course: Fix drag & drop image prevents moving resources
Including in this commit:
 - Modify the UI to make the section dropzone more visible
 - Prevent the direct image dragging in Chrome, Safari by improving the check
2022-02-28 14:00:57 +07:00
Mihail Geshoski cb802c269d MDL-73355 navigation: Do not always mark selected dropdown item active
Avoids always marking a selected dropdown item as active. When the
dropdown item has attribute data-disableactive="true" the active
classes will not be applied to this element. This is sometimes requred,
especially in the primary/secondary navigation more dropdown menu when
the dropdown item is an action link which opens a new page. Setting
this item as active will falsely indicate that the user is currently on
this page.
2022-02-23 21:44:08 +08:00
Mathew May ecb92c7ed9 MDL-72928 login: Update styling and functionality 2022-02-11 12:01:26 +08:00
Mikel Martín 8b535c297b MDL-73116 core: Add triggerElement parameter to saveCancel dialogue
triggerElement parameter is used to return the focus after modal is hidden
2022-02-07 11:33:35 +01:00
Andrew Nicols ce0ac9ce75 MDL-73314 core: Accept a Promise which resolves to string for toasts 2022-01-24 09:53:30 +08:00
Ilya Tregubov c10cf765d0 Merge branch 'MDL-73495-master' of https://github.com/dravek/moodle 2022-01-17 09:14:48 +02:00
Jun Pataleta 0706308ccb Merge branch 'MDL-71721-master' of https://github.com/sarjona/moodle 2022-01-13 13:53:50 +08:00
Ilya Tregubov 5c21e9f610 MDL-71710 core: updated adapter.js to 8.0.0 2022-01-12 13:47:34 +02:00
Sara Arjona 411f91f1a9 MDL-71721 lib: Upgrade emoji-data to 7.0.2 2022-01-10 10:34:53 +01:00
David Matamoros 5bef42d324 MDL-73495 core: Fix data attributes not being passed to individual tabs 2022-01-05 13:16:13 +01:00
Paul Holden 844f4a7fb3 MDL-72716 blocks: fix external fetching of available blocks.
Pass `$PAGE->subpage` value in AJAX request, which is required on
some pages (e.g. user dashboard) for loading existing blocks.
2021-12-29 11:59:27 +00:00
Andrew Nicols aecdb936cf MDL-73103 core: add new saveCancelPromise notification method. 2021-12-03 13:01:58 +00:00
Andrew Nicols e6600293f4 Merge branch 'MDL-73176' of https://github.com/paulholden/moodle 2021-12-02 12:09:33 +08:00
Paul Holden aecd84851c MDL-73222 blocks: register add block modal listeners just once.
Ensure modal is built on each click, as the dataset URL of the
target element may differ.
2021-12-01 02:09:24 +00:00
Paul Holden 8573981a03 MDL-73176 forms: escape selector for active autocomplete element. 2021-11-30 20:08:36 +00:00
Eloy Lafuente (stronk7) cee0949109 Merge branch 'MDL-73074' of https://github.com/paulholden/moodle 2021-11-29 23:14:48 +01:00
Mathew May b983003e2e MDL-70197 navigation: Remove old navigation elements and migrate behat 2021-11-29 15:47:42 +08:00
Shamim Rezaie 46e6502283 Merge branch 'MDL-72776-master' of https://github.com/ferranrecio/moodle 2021-11-23 14:56:50 +11:00
Paul Holden d38fe96834 MDL-73074 forms: ensure autocomplete element is enhanced only once.
This fixes the reportbuilder course filter, which was displayed twice
in response to an AJAX request for the rendered form.
2021-11-22 10:25:41 +00:00
Ferran Recio 675f8e24ca MDL-72776 theme_boost: new editing progress effect 2021-11-22 08:57:10 +01:00
Sara Arjona dc0e7a45df Merge branch 'MDL-70721-master' of git://github.com/rezaies/moodle 2021-11-18 15:18:51 +01:00
Ilya Tregubov 39cae56ef5 Merge branch 'MDL-69092-master_lti_pagination' of https://github.com/andrewmadden/moodle 2021-11-18 08:57:12 +02:00
Andrew Madden 1c78187010 MDL-69092 pagination: Add first/last config for paging_content_factory
Allow config toggle for showing first and last button for paging_content_factory.
2021-11-17 22:45:07 +11:00
Shamim Rezaie 4f96d7ac92 MDL-70721 core: a new mustache helper to clean string after get_string 2021-11-15 22:14:03 +11:00
David Matamoros 697594cd95 MDL-73011 core: Clean previous tab content when switching tabs
Co-authored-by: Paul Holden <paulh@moodle.com>
2021-11-11 23:32:58 +00:00
Jun Pataleta e1c9c7b007 Merge branch 'MDL-73007' of https://github.com/paulholden/moodle 2021-11-11 23:45:12 +08:00
Paul Holden 0d3f58db0a MDL-73007 output: trigger form changechecker when switching tabs.
Co-authored-by: Odei Alba <odeialba@gmail.com>
2021-11-09 17:20:23 +00:00
Ferran Recio b6a0b3a668 MDL-73034 js: add textarea and input check to dragdrop 2021-11-09 11:57:56 +01:00
Jun Pataleta 825b276b1a Merge branch 'MDL-72668-master' of git://github.com/rezaies/moodle 2021-11-04 12:03:42 +08:00
Shamim Rezaie ae2b100f55 MDL-72668 block_private_files: Switched from YUI to core/tree AMD 2021-11-04 13:48:06 +11:00
Shamim Rezaie d11e20a523 Merge branch 'MDL-72963-master' of git://github.com/ferranrecio/moodle 2021-11-03 18:14:03 +11:00