Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 61... Línea 61...
61
 *
61
 *
62
 * @param {HTMLElement} actionLink the element that triggers the action.
62
 * @param {HTMLElement} actionLink the element that triggers the action.
63
 */
63
 */
64
const resetAllTemplatesConfirm = async(actionLink) => {
64
const resetAllTemplatesConfirm = async(actionLink) => {
65
    try {
65
    try {
66
        await Notification.saveCancelPromise(
66
        await Notification.deleteCancelPromise(
67
            getString('resetalltemplatesconfirmtitle', 'mod_data'),
67
            getString('resetalltemplatesconfirmtitle', 'mod_data'),
68
            getString('resetalltemplatesconfirm', 'mod_data'),
68
            getString('resetalltemplatesconfirm', 'mod_data'),
69
            getString('reset', 'core'),
69
            getString('reset', 'core'),
70
        );
70
        );
71
        window.location = actionLink.href;
71
        window.location = actionLink.href;