1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed file text editor in web application.

This commit is contained in:
Ylian Saint-Hilaire 2019-12-12 18:34:58 -08:00
parent 833251b03d
commit 9a22c3f572
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);