Always set the focus to the search bar in the drive

This commit is contained in:
yflory
2017-03-28 10:57:13 +02:00
parent 67f4096396
commit af68e41fb6

View File

@@ -1536,11 +1536,9 @@ define([
module.resetTree();
if (isSearch) {
$tree.find('#searchInput').focus();
$tree.find('#searchInput')[0].selectionStart = getSearchCursor();
$tree.find('#searchInput')[0].selectionEnd = getSearchCursor();
}
$tree.find('#searchInput').focus();
$tree.find('#searchInput')[0].selectionStart = getSearchCursor();
$tree.find('#searchInput')[0].selectionEnd = getSearchCursor();
if (!isWorkgroup()) {
setLastOpenedFolder(path);