Skip to content

Commit

Permalink
Overwrite warning modal downloading a file
Browse files Browse the repository at this point in the history
  • Loading branch information
riccio82 committed May 30, 2018
1 parent 6384c46 commit 4c20aa8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion static/src/js/cat_source/microsoft-core.extension.js
Original file line number Diff line number Diff line change
@@ -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({
Expand All @@ -14,6 +14,16 @@
cancelTxt: 'Mark as complete',
msg: 'Unresolved glossary and/or tag issues are preventing you from completing your translation. <br>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. <br /><br /> If you continue downloading, part of the content may be untranslated - look for the string UNTRANSLATED_CONTENT in the downloaded files.'
});
}
});

Expand Down

0 comments on commit 4c20aa8

Please sign in to comment.