Fix an issue with the search field not displayed properly

This commit is contained in:
yflory 2017-06-09 15:45:46 +02:00
parent 7c9e86e351
commit 9d758a040b

View File

@ -1838,7 +1838,7 @@ define([
module.resetTree();
if (displayedCategories.indexOf(SEARCH) !== -1) {
if (displayedCategories.indexOf(SEARCH) !== -1 && $tree.find('#searchInput').length) {
// in history mode we want to focus the version number input
if (!history.isHistoryMode && !APP.mobile()) {
var st = $tree.scrollTop() || 0;