Commit graph

101375 commits

Author SHA1 Message Date
Andrew Nicols
687b3928d8 Merge branch 'MDL-70853-master' of git://github.com/lucaboesch/moodle 2021-05-27 10:58:50 +08:00
Peter Dias
d1c978c33c MDL-53544 core: Performance update is_charset_supported 2021-05-27 10:25:08 +08:00
Andrew Nicols
a30d50c30a MDL-71462 core: Remove duplicate gitignore line 2021-05-27 09:54:02 +08:00
Andrew Nicols
c04c0a8b57 Merge branch 'MDL-71462-master' of https://github.com/SysBind/moodle 2021-05-27 09:52:59 +08:00
Andrew Nicols
0f5ce89003 Merge branch 'MDL-67771-master' of git://github.com/peterRd/moodle 2021-05-27 09:44:26 +08:00
Andrew Nicols
3796be8126 Merge branch 'MDL-71145-master' of git://github.com/HuongNV13/moodle 2021-05-27 09:35:09 +08:00
AMOS bot
fccd6fd95f Automatically generated installer lang files 2021-05-27 00:07:47 +00:00
Eloy Lafuente (stronk7)
27df23a5b7 Merge branch 'MDL-71159-master' of git://github.com/andrewnicols/moodle 2021-05-26 18:35:55 +02:00
Eloy Lafuente (stronk7)
a2f6a833cc Merge branch 'MDL-68394-master' of git://github.com/ilyatregubov/moodle 2021-05-26 17:25:44 +02:00
Sara Arjona
eeb5b4b4d8 Merge branch 'MDL-53544-master-2' of git://github.com/peterRd/moodle 2021-05-26 12:39:25 +02:00
Peter Dias
f991397011 MDL-53544 lib: Update unit tests and thirdpartylibs 2021-05-26 16:46:30 +08:00
Peter Dias
490c72f491 MDL-53544 core: Remove typo3 usages in core 2021-05-26 16:46:30 +08:00
Peter Dias
36c64105a7 MDL-53544 lib: Remove typo3 from text.php 2021-05-26 16:46:30 +08:00
Peter Dias
5bf48252b5 MDL-71637 core: Set default for mb_substitute_character 2021-05-26 13:51:46 +08:00
Mihail Geshoski
9d80686630 MDL-64236 gradereport_grader: Add padding to content in grader report
In certain operative systems the browser's scrollbar may partly cover
the content in the student header and user cells when horizontally
scrolling through the table contents. This is most noticeable when in
RTL mode. Adding slight padding on the left (or right in RTL mode) to
the content in these cells would fix this UI issue.
2021-05-26 13:33:07 +08:00
Ilya Tregubov
045c3ec3ee MDL-68394 h5pactivity: Implement methods to display recent
activity info.
2021-05-26 06:54:34 +02:00
Jake Dallimore
83644cc414 Merge branch 'MDL-70990-master' of git://github.com/andrewnicols/moodle 2021-05-26 12:49:34 +08:00
Andrew Nicols
743d17ff58 MDL-70990 core: Deprecate core/events::getLegacyEvents() 2021-05-26 10:49:01 +08:00
Andrew Nicols
31d6adef4d MDL-70990 core_block: Replace legacy BLOCK_CONTENT_UPDATED event
The legacy M.core.event.BLOCK_CONTENT_UPDATED event has been replaced with a
new core_block/events::blockContentUpdated native DOM event.

The new event can be triggered using the `notifyBlockContentUpdated`
event, and by providing the HTMLElement that was updated, for example:

```
import {notifyBlockContentUpdated} from 'core_block/events';

const someHandler = e => {
    // ...
    const updatedBlock = e.target.closest('.block');
    notifyBlockContentUpdated(updatedBlock);
};
```

The new event can be listened to at any point in the DOM using the
following syntax:

```
import {eventTypes} from 'core_block/events';

const handler = e => {
    // The block that was updated.
    e.target;

    // The id of the updated block.
    e.detail.instanceId;
};

document.addEventListener(eventTypes.blockContentUpdated, handler);
```

A backward-compatabibility layer is included to ensure that any legacy
YUI event listener is still called with the same arguments.

This legacy bridges will be removed after Moodle 4.3.
2021-05-26 10:47:17 +08:00
Andrew Nicols
1a9d53d831 MDL-70990 core_form: Replace FORM_ERROR event
The legacy M.core.event.FORM_ERROR event has been replaced with a new
core_form/events::formError native DOM event.

The new event can be listened to at any point in the DOM using the
following syntax:

```
import {eventTypes} from 'core_form/events';

document.addEventListener(eventTypes.formError, handler);
```

A backward-compatabibility layer is included to ensure that any legacy
YUI event listener is still called with the same arguments.

This legacy bridges will be removed after Moodle 4.3.
2021-05-26 10:47:17 +08:00
Andrew Nicols
d4c6ac20c7 MDL-70990 core_filter: Add new native filterContentUpdated event
The legacy M.core.event.FILTER_CONTENT_UPDATED event has been replaced with a
new core_filter/events::filterContentUpdated native DOM event.

The new event can be triggered using the `notifyFilterContentUpdated`
function, and by providing with an Array containing the HTMLElements
that were updated, for example:

```
import {notifyFilterContentUpdated} from 'core_filter/events';

const someHandler = e => {
    // ...
    const nodeList = Array.from(document.querySelectorAll('div'));
    notifyFilterContentUpdated(nodeList);
};
```

The new event can be listened to at any point in the DOM using the
following syntax:

```
import {eventTypes} from 'core_filter/events';

const handler = e => {
    // The list of HTMLElements in an Array.
    e.detail.nodes;
};

document.addEventListener(eventTypes.filterContentUpdated, handler);
```

A backward-compatabibility layer is included to ensure that any legacy
YUI event listener, or jQuery event listener are still called with the
same arguments.

This legacy bridges will be removed after Moodle 4.3.
2021-05-26 10:47:15 +08:00
Andrew Nicols
a44cee78f1 MDL-70990 core_editor: Replace EDITOR_CONTENT_RESTORED event
The legacy M.core.event.EDITOR_CONTENT_RESTORED event has been replaced
with a new core_editor/events::editorContentRestored native DOM event.

The new event can be listened to at any point in the DOM using the
following syntax:

```
import {eventTypes} from 'core_editor/events';

document.addEventListener(eventTypes.editorContentRestored, handler);
```

A backward-compatabibility layer is included to ensure that any legacy
jQuery event is still called with the same arguments.

This legacy bridge will be removed after Moodle 4.3.
2021-05-26 10:47:03 +08:00
Andrew Nicols
a1ccefe2ac MDL-70990 core_form: Standardise event name usage
The `types` object introduced in Moodle 3.11 has been replaced with the
`eventTypes` object which is used consistently across all CustomEvent
definitinos.

Likewise the trigger functions have been renamed from
`triggerUploadStarted` to `notifyUploadStarted` and from
`triggerUploadCompleted` to `notifyUploadCompleted`.

Backwards compatability is maintained.
2021-05-26 10:46:52 +08:00
Andrew Nicols
919db49a44 MDL-70990 core_form: Replace FORM_FIELD_VALIDATION event
The legacy core/event::FORM_FIELD_VALIDATION event has been replaced with a
new core_form/events::formFieldValidationFailed native DOM event.

The new event can be listened to at any point in the DOM using the
following syntax:

```
import {eventTypes} from 'core_form/events';

document.addEventListener(eventTypes.formFieldValidationFailed, handler);
```

A backward-compatabibility layer is included to ensure that any legacy
jQuery event is still called with the same arguments.

This legacy bridge will be removed after Moodle 4.3.
2021-05-26 10:46:52 +08:00
Andrew Nicols
acd9d9823b MDL-70990 core_form: Replace FORM_SUBMIT_AJAX event
The legacy M.core.event.FORM_SUBMIT_AJAX ecent has been replaced with a
new core_form/events::formSubmittedByJavascript native DOM event.

The new event can be listened to at any point in the DOM using the
following syntax:

```
import {eventTypes} from 'core_form/events';

document.addEventListener(eventTypes.formSubmittedByJavascript, handler);
```

A backward-compatabibility layer is included to ensure that any
legacy YUI event triggered on a form is still respected and the new
native event is also fired.

A similar handler is also included to ensure that any legacy YUI event
listener is still called with the same arguments.

These legacy bridges will be removed after Moodle 4.3.
2021-05-26 10:46:49 +08:00
Andrew Nicols
da8658e49a MDL-70990 core: Rewrite core/event as ES6 2021-05-26 10:45:21 +08:00
Andrew Nicols
d30f573f47 Merge branch 'MDL-71628-master' of https://github.com/nguyenphuctien/moodle 2021-05-26 10:38:48 +08:00
Sara Arjona
0fe09ffcad Merge branch 'MDL-68925_master' of git://github.com/mdjnelson/moodle 2021-05-25 15:34:23 +02:00
Tien Nguyen
b14e2d3bf3 MDL-71628 quiz: Quiz review: names not shown on Manual grading screens 2021-05-25 16:28:52 +07:00
Eloy Lafuente (stronk7)
413551656d Merge branch 'MDL-71659-master-missinggradeitem' of git://github.com/mudrd8mz/moodle 2021-05-24 23:22:59 +02:00
Paul Holden
241641ab59 MDL-69703 theme_boost: remove right padding for multi-selects.
This removes the whitespace obscuring longer option elements when
selected, particularly on narrow screens.
2021-05-24 15:56:46 +01:00
Paul Holden
42a59cbc66 MDL-71661 cohort: support custom user profile fields. 2021-05-24 15:02:35 +01:00
avi
641afc2631 MDL-71462 core: Add phpstorm metadata file to gitignore 2021-05-24 15:56:05 +03:00
Andrew Nicols
053b0462fd MDL-70990 core: Ignore amd directory in plugin-like lists
The `get_list_of_plugins()` function is used to fetch plugin-like files
or directories from a specified directory. A number of standard
exclusions are included but this list is not the same as the list in
`core_component`.

The list has been updated to include the `amd` directory, which is
regularly used in both components, and plugins.
2021-05-24 08:47:09 +08:00
Mikhail Golenkov
ed5e808052 MDL-70337 backup: Enhance automated backup logs readability 2021-05-24 10:29:02 +10:00
AMOS bot
1fa14adc54 Automatically generated installer lang files 2021-05-24 00:07:47 +00:00
AMOS bot
5a84ad7dcb Automatically generated installer lang files 2021-05-23 00:07:43 +00:00
Andrew Nicols
a48a917477 MDL-71369 admin: Apply form change checker to admin/category view 2021-05-21 09:57:34 +08:00
Peter Dias
ca76395aba MDL-53544 lib: Remove old Typo3 files 2021-05-21 09:54:36 +08:00
Huong Nguyen
9079814421 MDL-71145 qtype_ddmarker: Incorrect marker positions in responsive mode 2021-05-21 08:42:50 +07:00
Jun Pataleta
85dc1ec358 Merge branch 'MDL-60431' of https://github.com/jonof/moodle 2021-05-21 08:56:08 +08:00
Jonathon Fowler
be65ee093d MDL-60431 qtype_calculated: handle NAN and INF calculation outcomes
With significant-digits presentation mode, NAN would be formatted as
'NAN' followed by zeroes, which looks silly, and +INF would cause an
execution timeout as Moodle tries to divide +∞ by 10 until it becomes
less than 1, which can happen in a divide-by-zero situation.

Note that the user can't answer NAN or INF to any question, but at this
at least now looks consistent and also doesn't break Moodle in the case
of +INF.
2021-05-21 09:36:06 +10:00
Paul Holden
48e70b5fdb MDL-71693 admin: set default for debugdisplay to off.
The previous default value for this config was based on the
PHP ini file `display_error` property (6349a3ba). However we
override this propertly during page setup (25338300) according
to the value of the configuration itself.

This had the effect of always setting the default value for
this config to it's current value.
2021-05-20 21:37:37 +01:00
Luca Bösch
942dc9de42 MDL-70853 theme: align submit buttons in settings forms. 2021-05-20 13:00:28 +02:00
Sara Arjona
efb3d4e7a7 weekly release 4.0dev 2021-05-20 11:09:00 +02:00
Sara Arjona
19eef15774 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-05-20 11:08:57 +02:00
Peter Dias
2d47939366 MDL-67771 theme: Add side-post to incourse views 2021-05-20 15:13:51 +08:00
Mark Nelson
e170f1c957 MDL-68925 assignfeedback_editpdf: avoid hiding comments with a menu open
Co-authored by: Jonathon Fowler <fowlerj@usq.edu.au>
2021-05-20 13:14:00 +08:00
Jun Pataleta
97429f82b4 Merge branch 'MDL-71157-master' of git://github.com/sarjona/moodle 2021-05-20 12:30:15 +08:00
abgreeve
de3f8e1240 Merge branch 'MDL-65203-master' of https://github.com/dcai/moodle 2021-05-20 11:10:07 +08:00