mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-13 21:12:53 -04:00
Fixed null reference in file search
This commit is contained in:
parent
2c3cbf9efb
commit
c39ff657f4
@ -9766,9 +9766,9 @@
|
|||||||
function p13findfileEx(b, t) {
|
function p13findfileEx(b, t) {
|
||||||
if (Q('d2findFilter').value.length == 0) return;
|
if (Q('d2findFilter').value.length == 0) return;
|
||||||
var winAgent = ((currentNode.agent.id > 0) && (currentNode.agent.id < 5)) || (currentNode.agent.id == 14)|| (currentNode.agent.id == 34);
|
var winAgent = ((currentNode.agent.id > 0) && (currentNode.agent.id < 5)) || (currentNode.agent.id == 14)|| (currentNode.agent.id == 34);
|
||||||
var slash = winagent ? '\\' : '/';
|
var slash = winAgent ? '\\' : '/';
|
||||||
var path = p13filetreelocation.join(slash) + slash;
|
var path = p13filetreelocation.join(slash) + slash;
|
||||||
if (!winagent) { path = slash + path; }
|
if (!winAgent) { path = slash + path; }
|
||||||
xxdialogTag = 'find:' + Math.random();
|
xxdialogTag = 'find:' + Math.random();
|
||||||
files.sendText({ action: 'findfile', reqid: xxdialogTag, path: path, filter: Q('d2findFilter').value });
|
files.sendText({ action: 'findfile', reqid: xxdialogTag, path: path, filter: Q('d2findFilter').value });
|
||||||
QH('d2findResults', '');
|
QH('d2findResults', '');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user