From 3c93ef0bc5236e8a123845297faa8b48bc543709 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 12 Dec 2019 18:34:58 -0800 Subject: [PATCH] Fixed file text editor in web application. --- views/default-min.handlebars | 11 ++++++----- views/default.handlebars | 9 +++++---- views/translations/default-min_cs.handlebars | 11 ++++++----- views/translations/default-min_fr.handlebars | 11 ++++++----- views/translations/default-min_ja.handlebars | 11 ++++++----- views/translations/default-min_pt.handlebars | 11 ++++++----- views/translations/default_cs.handlebars | 11 ++++++----- views/translations/default_fr.handlebars | 11 ++++++----- views/translations/default_ja.handlebars | 11 ++++++----- views/translations/default_pt.handlebars | 11 ++++++----- 10 files changed, 59 insertions(+), 49 deletions(-) diff --git a/views/default-min.handlebars b/views/default-min.handlebars index 0437c2e5..f526be2d 100644 --- a/views/default-min.handlebars +++ b/views/default-min.handlebars @@ -5406,7 +5406,7 @@ if ((ReadInt(data, 0) & 1) != 0) { // Check end flag if (downloadFile.tag == 'viewer') { // View the file in the dialog box - setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack); + setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file); QH('d4editorarea', EscapeHtml(downloadFile.data)); QS('dialog').width = 'auto'; QS('dialog').bottom = '80px'; @@ -6036,7 +6036,7 @@ if (xxdialogMode) return false; var x = ''; x += '
'; - x += '
'; + x += '
'; x += '
'; x += '
'; x += '
'; @@ -8396,9 +8396,10 @@ xxdialogFunc = f; xxdialogButtons = b; xxdialogTag = tag; - QS('dialog').width = null; // Reset dialog size - QS('dialog').left = null; - QS('dialog').right = null; + + // Reset dialog size + QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null; + QE('idx_dlgOkButton', true); QV('idx_dlgOkButton', b & 1); QV('idx_dlgCancelButton', b & 2); diff --git a/views/default.handlebars b/views/default.handlebars index a6b58d06..64b66b3d 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -6423,7 +6423,7 @@ if ((ReadInt(data, 0) & 1) != 0) { // Check end flag if (downloadFile.tag == 'viewer') { // View the file in the dialog box - setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack); + setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file); QH('d4editorarea', EscapeHtml(downloadFile.data)); QS('dialog').width = 'auto'; QS('dialog').bottom = '80px'; @@ -9413,9 +9413,10 @@ xxdialogFunc = f; xxdialogButtons = b; xxdialogTag = tag; - QS('dialog').width = null; // Reset dialog size - QS('dialog').left = null; - QS('dialog').right = null; + + // Reset dialog size + QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null; + QE('idx_dlgOkButton', true); QV('idx_dlgOkButton', b & 1); QV('idx_dlgCancelButton', b & 2); diff --git a/views/translations/default-min_cs.handlebars b/views/translations/default-min_cs.handlebars index b1180910..33980cb8 100644 --- a/views/translations/default-min_cs.handlebars +++ b/views/translations/default-min_cs.handlebars @@ -5406,7 +5406,7 @@ if ((ReadInt(data, 0) & 1) != 0) { // Check end flag if (downloadFile.tag == 'viewer') { // View the file in the dialog box - setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack); + setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file); QH('d4editorarea', EscapeHtml(downloadFile.data)); QS('dialog').width = 'auto'; QS('dialog').bottom = '80px'; @@ -6036,7 +6036,7 @@ if (xxdialogMode) return false; var x = ''; x += '
'; - x += '
'; + x += '
'; x += '
'; x += '
'; x += '
'; @@ -8396,9 +8396,10 @@ xxdialogFunc = f; xxdialogButtons = b; xxdialogTag = tag; - QS('dialog').width = null; // Reset dialog size - QS('dialog').left = null; - QS('dialog').right = null; + + // Reset dialog size + QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null; + QE('idx_dlgOkButton', true); QV('idx_dlgOkButton', b & 1); QV('idx_dlgCancelButton', b & 2); diff --git a/views/translations/default-min_fr.handlebars b/views/translations/default-min_fr.handlebars index 51664fef..86517aac 100644 --- a/views/translations/default-min_fr.handlebars +++ b/views/translations/default-min_fr.handlebars @@ -5406,7 +5406,7 @@ if ((ReadInt(data, 0) & 1) != 0) { // Check end flag if (downloadFile.tag == 'viewer') { // View the file in the dialog box - setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack); + setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file); QH('d4editorarea', EscapeHtml(downloadFile.data)); QS('dialog').width = 'auto'; QS('dialog').bottom = '80px'; @@ -6036,7 +6036,7 @@ if (xxdialogMode) return false; var x = ''; x += '
'; - x += '
'; + x += '
'; x += '
'; x += '
'; x += '
'; @@ -8396,9 +8396,10 @@ xxdialogFunc = f; xxdialogButtons = b; xxdialogTag = tag; - QS('dialog').width = null; // Reset dialog size - QS('dialog').left = null; - QS('dialog').right = null; + + // Reset dialog size + QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null; + QE('idx_dlgOkButton', true); QV('idx_dlgOkButton', b & 1); QV('idx_dlgCancelButton', b & 2); diff --git a/views/translations/default-min_ja.handlebars b/views/translations/default-min_ja.handlebars index 891487f2..63cec884 100644 --- a/views/translations/default-min_ja.handlebars +++ b/views/translations/default-min_ja.handlebars @@ -5406,7 +5406,7 @@ if ((ReadInt(data, 0) & 1) != 0) { // Check end flag if (downloadFile.tag == 'viewer') { // View the file in the dialog box - setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack); + setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file); QH('d4editorarea', EscapeHtml(downloadFile.data)); QS('dialog').width = 'auto'; QS('dialog').bottom = '80px'; @@ -6036,7 +6036,7 @@ if (xxdialogMode) return false; var x = ''; x += '
'; - x += '
'; + x += '
'; x += '
'; x += '
'; x += '
'; @@ -8396,9 +8396,10 @@ xxdialogFunc = f; xxdialogButtons = b; xxdialogTag = tag; - QS('dialog').width = null; // Reset dialog size - QS('dialog').left = null; - QS('dialog').right = null; + + // Reset dialog size + QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null; + QE('idx_dlgOkButton', true); QV('idx_dlgOkButton', b & 1); QV('idx_dlgCancelButton', b & 2); diff --git a/views/translations/default-min_pt.handlebars b/views/translations/default-min_pt.handlebars index 6f67e644..b7573ccc 100644 --- a/views/translations/default-min_pt.handlebars +++ b/views/translations/default-min_pt.handlebars @@ -5406,7 +5406,7 @@ if ((ReadInt(data, 0) & 1) != 0) { // Check end flag if (downloadFile.tag == 'viewer') { // View the file in the dialog box - setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack); + setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file); QH('d4editorarea', EscapeHtml(downloadFile.data)); QS('dialog').width = 'auto'; QS('dialog').bottom = '80px'; @@ -6036,7 +6036,7 @@ if (xxdialogMode) return false; var x = ''; x += '
'; - x += '
'; + x += '
'; x += '
'; x += '
'; x += '
'; @@ -8396,9 +8396,10 @@ xxdialogFunc = f; xxdialogButtons = b; xxdialogTag = tag; - QS('dialog').width = null; // Reset dialog size - QS('dialog').left = null; - QS('dialog').right = null; + + // Reset dialog size + QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null; + QE('idx_dlgOkButton', true); QV('idx_dlgOkButton', b & 1); QV('idx_dlgCancelButton', b & 2); diff --git a/views/translations/default_cs.handlebars b/views/translations/default_cs.handlebars index 58c1c5ce..4460c618 100644 --- a/views/translations/default_cs.handlebars +++ b/views/translations/default_cs.handlebars @@ -6421,7 +6421,7 @@ if ((ReadInt(data, 0) & 1) != 0) { // Check end flag if (downloadFile.tag == 'viewer') { // View the file in the dialog box - setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack); + setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file); QH('d4editorarea', EscapeHtml(downloadFile.data)); QS('dialog').width = 'auto'; QS('dialog').bottom = '80px'; @@ -7051,7 +7051,7 @@ if (xxdialogMode) return false; var x = ''; x += '
'; - x += '
'; + x += '
'; x += '
'; x += '
'; x += '
'; @@ -9411,9 +9411,10 @@ xxdialogFunc = f; xxdialogButtons = b; xxdialogTag = tag; - QS('dialog').width = null; // Reset dialog size - QS('dialog').left = null; - QS('dialog').right = null; + + // Reset dialog size + QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null; + QE('idx_dlgOkButton', true); QV('idx_dlgOkButton', b & 1); QV('idx_dlgCancelButton', b & 2); diff --git a/views/translations/default_fr.handlebars b/views/translations/default_fr.handlebars index 0f13f9b5..0173e84f 100644 --- a/views/translations/default_fr.handlebars +++ b/views/translations/default_fr.handlebars @@ -6421,7 +6421,7 @@ if ((ReadInt(data, 0) & 1) != 0) { // Check end flag if (downloadFile.tag == 'viewer') { // View the file in the dialog box - setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack); + setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file); QH('d4editorarea', EscapeHtml(downloadFile.data)); QS('dialog').width = 'auto'; QS('dialog').bottom = '80px'; @@ -7051,7 +7051,7 @@ if (xxdialogMode) return false; var x = ''; x += '
'; - x += '
'; + x += '
'; x += '
'; x += '
'; x += '
'; @@ -9411,9 +9411,10 @@ xxdialogFunc = f; xxdialogButtons = b; xxdialogTag = tag; - QS('dialog').width = null; // Reset dialog size - QS('dialog').left = null; - QS('dialog').right = null; + + // Reset dialog size + QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null; + QE('idx_dlgOkButton', true); QV('idx_dlgOkButton', b & 1); QV('idx_dlgCancelButton', b & 2); diff --git a/views/translations/default_ja.handlebars b/views/translations/default_ja.handlebars index 3a5f5456..33dae21b 100644 --- a/views/translations/default_ja.handlebars +++ b/views/translations/default_ja.handlebars @@ -6421,7 +6421,7 @@ if ((ReadInt(data, 0) & 1) != 0) { // Check end flag if (downloadFile.tag == 'viewer') { // View the file in the dialog box - setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack); + setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file); QH('d4editorarea', EscapeHtml(downloadFile.data)); QS('dialog').width = 'auto'; QS('dialog').bottom = '80px'; @@ -7051,7 +7051,7 @@ if (xxdialogMode) return false; var x = ''; x += '
'; - x += '
'; + x += '
'; x += '
'; x += '
'; x += '
'; @@ -9411,9 +9411,10 @@ xxdialogFunc = f; xxdialogButtons = b; xxdialogTag = tag; - QS('dialog').width = null; // Reset dialog size - QS('dialog').left = null; - QS('dialog').right = null; + + // Reset dialog size + QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null; + QE('idx_dlgOkButton', true); QV('idx_dlgOkButton', b & 1); QV('idx_dlgCancelButton', b & 2); diff --git a/views/translations/default_pt.handlebars b/views/translations/default_pt.handlebars index 5c5b3166..db26e756 100644 --- a/views/translations/default_pt.handlebars +++ b/views/translations/default_pt.handlebars @@ -6421,7 +6421,7 @@ if ((ReadInt(data, 0) & 1) != 0) { // Check end flag if (downloadFile.tag == 'viewer') { // View the file in the dialog box - setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack); + setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file); QH('d4editorarea', EscapeHtml(downloadFile.data)); QS('dialog').width = 'auto'; QS('dialog').bottom = '80px'; @@ -7051,7 +7051,7 @@ if (xxdialogMode) return false; var x = ''; x += '
'; - x += '
'; + x += '
'; x += '
'; x += '
'; x += '
'; @@ -9411,9 +9411,10 @@ xxdialogFunc = f; xxdialogButtons = b; xxdialogTag = tag; - QS('dialog').width = null; // Reset dialog size - QS('dialog').left = null; - QS('dialog').right = null; + + // Reset dialog size + QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null; + QE('idx_dlgOkButton', true); QV('idx_dlgOkButton', b & 1); QV('idx_dlgCancelButton', b & 2);