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:
parent
833251b03d
commit
9a22c3f572
10 changed files with 59 additions and 49 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue