mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-68409 js: Convert alert and confirmation dialogues to use modal
This commit is contained in:
parent
e8df743b3b
commit
9050f3f17e
2
lib/amd/build/notification.min.js
vendored
2
lib/amd/build/notification.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -187,6 +187,20 @@ export const alert = async(title, message, cancelText) => {
|
||||
* @param {String|Promise} title
|
||||
* @param {String|Promise} question
|
||||
* @param {String|Promise} saveLabel
|
||||
* @param {String|Promise} noLabel
|
||||
* @param {String|Promise} saveCallback
|
||||
* @param {String|Promise} cancelCallback
|
||||
* @returns {Promise}
|
||||
*/
|
||||
export const confirm = (title, question, saveLabel, noLabel, saveCallback, cancelCallback) =>
|
||||
saveCancel(title, question, saveLabel, saveCallback, cancelCallback);
|
||||
|
||||
/**
|
||||
* The Save and Cancel dialogue helper.
|
||||
*
|
||||
* @param {String|Promise} title
|
||||
* @param {String|Promise} question
|
||||
* @param {String|Promise} saveLabel
|
||||
* @param {String|Promise} saveCallback
|
||||
* @param {String|Promise} cancelCallback
|
||||
* @returns {Promise}
|
||||
|
@ -47,6 +47,9 @@ information provided here is intended especially for developers.
|
||||
db/services.php. Note - this also requires $CFG->enable_read_only_sessions to be set to true.
|
||||
* database_manager::check_database_schema() now checks for missing and extra indexes.
|
||||
* Implement a more direct xsendfile_file() method for an alternative_file_system_class
|
||||
* The core/notification module has been updated to use AMD modals for its confirmation and alert dialogues.
|
||||
The confirmation dialogue no longer has a configurable "No" button as per similar changes in MDL-59759.
|
||||
This set of confirmation modals was unintentionally missed from that deprecation process.
|
||||
|
||||
=== 3.8 ===
|
||||
* Add CLI option to notify all cron tasks to stop: admin/cli/cron.php --stop
|
||||
|
Loading…
x
Reference in New Issue
Block a user