set GoTo Button with current folder #7443
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Nov 24, 2025 at 19:12 UTC
fa96d666cc880396b8265e8684372122128d37bd
2 files changed
+2
-2
views/default.handlebars
+1
-1
@@ -11439,7 +11439,7 @@
11439
}
11440
11441
function p13gotofolder() {
11442
- setDialogMode(2, "Go To Folder", 3, p13gotofolderEx, '<input type=text id=p13folderinput style=width:100% placeholder="'+(isWindowsNode(currentNode) ? 'C:\\' : '/var/www')+'" />');
11442
+ setDialogMode(2, "Go To Folder", 3, p13gotofolderEx, '<input type=text id=p13folderinput value="' + (isWindowsNode(currentNode) ? p13targetpath.replaceAll('/','\\') + '\\' : p13targetpath + '/') +'" style=width:100% placeholder="'+(isWindowsNode(currentNode) ? 'C:\\' : '/var/www')+'" />');
11443
focusTextBox('p13folderinput');
11444
}
11445
function p13gotofolderEx() {
views/default3.handlebars
+1
-1
@@ -12429,7 +12429,7 @@
12429
12430
function p13gotofolder() {
12431
xxdialogButtons = 3;
12432
- setModalContent('xxAddAgent', "Go To Folder", '<input type=text id=p13folderinput style=width:100% placeholder="' + (isWindowsNode(currentNode) ? 'C:\\' : '/var/www') + '" />');
12432
+ setModalContent('xxAddAgent', "Go To Folder", '<input type=text id=p13folderinput style=width:100% value="' + (isWindowsNode(currentNode) ? p13targetpath.replaceAll('/','\\') + '\\' : p13targetpath + '/') +'"placeholder="' + (isWindowsNode(currentNode) ? 'C:\\' : '/var/www') + '" />');
12433
showModal('xxAddAgentModal', 'idx_dlgOkButton', p13gotofolderEx);
12434
focusTextBox('p13folderinput');
12435
}