Merge pull request #3232 from nzalev/fix-search-bug

Fixed reference error in file search (fix for #3231)
This commit is contained in:
Ylian Saint-Hilaire 2021-10-30 17:11:24 -07:00 committed by GitHub
commit a46340f1ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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', '');