bootstrap: fix files edit file feature
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Nov 14, 2024 at 15:51 UTC
54170c44a0f860e21848112013bc07934be689c9
1 file changed
+5
-10
views/default3.handlebars
+5
-10
@@ -1,4 +1,4 @@
1
-<!DOCTYPE html>
1
+<!DOCTYPE html>
2
<html lang="en" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
3
4
<head>
@@ -3852,13 +3852,10 @@
3852
}
3853
meshserver.send({ action: 'fileoperation', fileop: 'set', path: tag.path, file: tag.file, data: btoa(data) });
3854
}
3855
- setModalContent('xxAddAgent', EscapeHtml(message.file), null);
3855
+ setModalContent('xxAddAgent', EscapeHtml(message.file), 4, 'extra-large');
3856
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => p5editSaveBack(3, message));
3857
QV('d4EncodingButton', true);
3858
QV('d4LineBreakButton', true);
3859
- QS('dialog').width = 'auto';
3860
- QS('dialog').bottom = '80px';
3861
- QS('dialog').top = QS('dialog').left = QS('dialog').right = '100px';
3859
if (d4EditEncodingVal == 1) {
3860
Q('d4editorarea').value = decode_utf8(atob(message.data)); // UTF8 Encoding
3861
} else {
@@ -12725,13 +12722,11 @@
12722
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
12723
if (gdownloadFile.tag == 'viewer') {
12724
// View the file in the dialog box
12728
- setModalContent('xxAddAgent', EscapeHtml(gdownloadFile.file), '');
12729
- showModal('xxAddAgentModal', 'idx_dlgOkButton', () => p13editSaveBack(3, gdownloadFile.file));
12725
+ setModalContent('xxAddAgent', EscapeHtml(gdownloadFile.file), 4, 'extra-large');
12726
+ var file = gdownloadFile.file;
12727
+ showModal('xxAddAgentModal', 'idx_dlgOkButton', () => p13editSaveBack(3, file));
12728
QV('d4EncodingButton', true);
12729
QV('d4LineBreakButton', true);
12732
- QS('dialog').width = 'auto';
12733
- QS('dialog').bottom = '80px';
12734
- QS('dialog').top = QS('dialog').left = QS('dialog').right = '100px';
12730
if (d4EditEncodingVal == 1) {
12731
Q('d4editorarea').value = decode_utf8(gdownloadFile.data); // UTF8 Encoding
12732
} else {