diff --git a/static/src/js/cat_source/microsoft-core.extension.js b/static/src/js/cat_source/microsoft-core.extension.js
index b8d86f2..7103965 100644
--- a/static/src/js/cat_source/microsoft-core.extension.js
+++ b/static/src/js/cat_source/microsoft-core.extension.js
@@ -1,9 +1,9 @@
-
(function(SF, QA_GLOSSARY) {
let original_closeFilter = SF.closeFilter;
let filte_size = '50';
let filter_type = 'regular_intervals';
+
$.extend(UI, {
showFixWarningsModal: function ( ) {
APP.confirm({
@@ -14,6 +14,16 @@
cancelTxt: 'Mark as complete',
msg: 'Unresolved glossary and/or tag issues are preventing you from completing your translation.
Please fix the issues.'
});
+ },
+ showFixWarningsOnDownload( continueDownloadFunction ) {
+ APP.confirm({
+ name: 'confirmDownload', // <-- this is the name of the function that gets invoked?
+ cancelTxt: 'Fix errors',
+ onCancel: 'goToFirstError',
+ callback: continueDownloadFunction,
+ okTxt: 'Download anyway',
+ msg: 'Unresolved glossary and/or tag issues may prevent downloading your translation. Please fix the issues.
If you continue downloading, part of the content may be untranslated - look for the string UNTRANSLATED_CONTENT in the downloaded files.'
+ });
}
});