mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
Fixed file text editor in web application.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user