diff --git a/administrator/components/com_config/tmpl/application/default.php b/administrator/components/com_config/tmpl/application/default.php index 21818e6b44b45..0ab4bc0763326 100644 --- a/administrator/components/com_config/tmpl/application/default.php +++ b/administrator/components/com_config/tmpl/application/default.php @@ -19,7 +19,8 @@ /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); $wa->useScript('keepalive') - ->useScript('form.validate'); + ->useScript('form.validate') + ->useScript('com_config.unsaved-changes'); // Load JS message titles Text::script('ERROR'); @@ -27,6 +28,9 @@ Text::script('NOTICE'); Text::script('MESSAGE'); Text::script('SUCCESS'); +Text::script('COM_CONFIG_UNSAVED_CHANGES_CONFIRM'); +Text::script('COM_CONFIG_UNSAVED_CHANGES_PROCEED'); +Text::script('JCANCEL'); ?>