mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-14 12:01:52 +00:00
bootstrap: fix files edit file feature
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
8a5ad1563d
commit
54170c44a0
1 changed files with 5 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
|
<html lang="en" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
@ -3852,13 +3852,10 @@
|
||||||
}
|
}
|
||||||
meshserver.send({ action: 'fileoperation', fileop: 'set', path: tag.path, file: tag.file, data: btoa(data) });
|
meshserver.send({ action: 'fileoperation', fileop: 'set', path: tag.path, file: tag.file, data: btoa(data) });
|
||||||
}
|
}
|
||||||
setModalContent('xxAddAgent', EscapeHtml(message.file), null);
|
setModalContent('xxAddAgent', EscapeHtml(message.file), 4, 'extra-large');
|
||||||
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => p5editSaveBack(3, message));
|
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => p5editSaveBack(3, message));
|
||||||
QV('d4EncodingButton', true);
|
QV('d4EncodingButton', true);
|
||||||
QV('d4LineBreakButton', true);
|
QV('d4LineBreakButton', true);
|
||||||
QS('dialog').width = 'auto';
|
|
||||||
QS('dialog').bottom = '80px';
|
|
||||||
QS('dialog').top = QS('dialog').left = QS('dialog').right = '100px';
|
|
||||||
if (d4EditEncodingVal == 1) {
|
if (d4EditEncodingVal == 1) {
|
||||||
Q('d4editorarea').value = decode_utf8(atob(message.data)); // UTF8 Encoding
|
Q('d4editorarea').value = decode_utf8(atob(message.data)); // UTF8 Encoding
|
||||||
} else {
|
} else {
|
||||||
|
@ -12725,13 +12722,11 @@
|
||||||
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
|
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
|
||||||
if (gdownloadFile.tag == 'viewer') {
|
if (gdownloadFile.tag == 'viewer') {
|
||||||
// View the file in the dialog box
|
// View the file in the dialog box
|
||||||
setModalContent('xxAddAgent', EscapeHtml(gdownloadFile.file), '');
|
setModalContent('xxAddAgent', EscapeHtml(gdownloadFile.file), 4, 'extra-large');
|
||||||
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => p13editSaveBack(3, gdownloadFile.file));
|
var file = gdownloadFile.file;
|
||||||
|
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => p13editSaveBack(3, file));
|
||||||
QV('d4EncodingButton', true);
|
QV('d4EncodingButton', true);
|
||||||
QV('d4LineBreakButton', true);
|
QV('d4LineBreakButton', true);
|
||||||
QS('dialog').width = 'auto';
|
|
||||||
QS('dialog').bottom = '80px';
|
|
||||||
QS('dialog').top = QS('dialog').left = QS('dialog').right = '100px';
|
|
||||||
if (d4EditEncodingVal == 1) {
|
if (d4EditEncodingVal == 1) {
|
||||||
Q('d4editorarea').value = decode_utf8(gdownloadFile.data); // UTF8 Encoding
|
Q('d4editorarea').value = decode_utf8(gdownloadFile.data); // UTF8 Encoding
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue