Fixed file text editor in web application.

This commit is contained in:
Ylian Saint-Hilaire
2019-12-12 18:34:58 -08:00
parent f2acf82525
commit 3c93ef0bc5
10 changed files with 59 additions and 49 deletions

View File

@@ -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);