Skip to content

Commit

Permalink
UHF-10276: Fix translations on webform.form.unsaved.js (#1525)
Browse files Browse the repository at this point in the history
* UHF-10276: Replace the dialog.js functionality with custom dialog

* UHF-10276: Fix translations, style the close button on the dialog

* UHF-10276: Add focus trap for the dialog

* UHF-10276: Refactor dialog and survey styles together

* UHF-10276: Add comment about survey similarities

* UHF-10276: Refactor dialog to a separate file so it can be used by other grants modules, refactored dialog.js away from grants_profile, add translations and remove old dialog.js

* UHF-10276: Manually trigger translations for the webform.form.unsaved javascript file
  • Loading branch information
teroelonen authored Oct 23, 2024
1 parent e00411a commit c3de5b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public/modules/custom/grants_handler/grants_handler.install
Original file line number Diff line number Diff line change
Expand Up @@ -379,3 +379,10 @@ function grants_handler_update_9009(&$sandbox): void {
// Enable the grants_attachments module.
\Drupal::service('module_installer')->install(['grants_events']);
}

/**
* Manually trigger locale translation.
*/
function grants_handler_update_9010(&$sandbox): void {
_locale_parse_js_file('modules/custom/grants_handler/js/webform.form.unsaved.js');
}

0 comments on commit c3de5b4

Please sign in to comment.