fix mobile ui upload mesh agent core

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed May 7, 2024 at 14:16 UTC 33c0e8228618c028c672e7fc0f4b5e1ddcdcf498
1 file changed +27 -2
views/default-mobile.handlebars
+27 -2
@@ -1,4 +1,4 @@
1 -<!DOCTYPE html>
1 +<!DOCTYPE html>
2 <html lang="en" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta charset="utf-8">
@@ -1158,6 +1158,31 @@
1158 <option value=12>Shift-F10</option>
1159 </select>
1160 </div>
1161 + <div id=dialog4 style="margin:auto;margin:3px">
1162 + <div id=d3upload>
1163 + <div>File Selection</div>
1164 + <select id=d3uploadMode onchange=d3modechange()>
1165 + <option value=1>Local file upload</option>
1166 + <option value=2>Server file selection</option>
1167 + </select>
1168 + </div>
1169 + <div id=d3localmode style="display:none">
1170 + <div>Upload File</div>
1171 + <form id=d3localmodeform method=post enctype=multipart/form-data action=uploadfile.ashx target=fileUploadFrame>
1172 + <input type=text id=d3auth name=auth style="display:none" />
1173 + <input type=text id=d3filter name=filter style="display:none" />
1174 + <input type=text id=d3attrib name=attrib style="display:none" />
1175 + <input type=file id=d3localFile name=files onchange=d3setActions() />
1176 + <input type=submit id=d3submit style="display:none" />
1177 + </form>
1178 + </div>
1179 + <div id=d3servermode>
1180 + <div id=d3serveraction valign=bottom>
1181 + <input type=button id=p3FolderUp disabled="disabled" onclick=d3folderup() value="Up" />&nbsp;<span id=p3CurrentFolder></span>
1182 + </div>
1183 + <div id=d3serverfiles></div>
1184 + </div>
1185 + </div>
1186 <div id=dialog7 style="margin:auto;margin:3px">
1187 <div id="d7meshkvm">
1188 <h4 style="width:100%;border-bottom:1px solid gray">Agent Remote Desktop</h4>
@@ -6652,7 +6677,7 @@
6677 Q('d3localmodeform').action = 'uploadmeshcorefile.ashx';
6678 Q('d3auth').value = authCookie;
6679 Q('d3attrib').value = currentNode._id;
6655 - setDialogMode(3, "Upload Mesh Agent Core", 3, p15uploadCoreEx2);
6680 + setDialogMode(4, "Upload Mesh Agent Core", 3, p15uploadCoreEx2);
6681 d3init();
6682 }
6683