mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-12-04 06:35:47 -05:00
set GoTo Button with current folder #7443
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
@@ -11439,7 +11439,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function p13gotofolder() {
|
function p13gotofolder() {
|
||||||
setDialogMode(2, "Go To Folder", 3, p13gotofolderEx, '<input type=text id=p13folderinput style=width:100% placeholder="'+(isWindowsNode(currentNode) ? 'C:\\' : '/var/www')+'" />');
|
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')+'" />');
|
||||||
focusTextBox('p13folderinput');
|
focusTextBox('p13folderinput');
|
||||||
}
|
}
|
||||||
function p13gotofolderEx() {
|
function p13gotofolderEx() {
|
||||||
|
|||||||
@@ -12429,7 +12429,7 @@
|
|||||||
|
|
||||||
function p13gotofolder() {
|
function p13gotofolder() {
|
||||||
xxdialogButtons = 3;
|
xxdialogButtons = 3;
|
||||||
setModalContent('xxAddAgent', "Go To Folder", '<input type=text id=p13folderinput style=width:100% placeholder="' + (isWindowsNode(currentNode) ? 'C:\\' : '/var/www') + '" />');
|
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') + '" />');
|
||||||
showModal('xxAddAgentModal', 'idx_dlgOkButton', p13gotofolderEx);
|
showModal('xxAddAgentModal', 'idx_dlgOkButton', p13gotofolderEx);
|
||||||
focusTextBox('p13folderinput');
|
focusTextBox('p13folderinput');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user