From 2790088318e6d9e938b88907ed52f45e12480f7e Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Fri, 26 May 2017 16:07:39 +0200 Subject: [PATCH] Switch to search form when importing files --- frontend/app/search/search-query.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/app/search/search-query.js b/frontend/app/search/search-query.js index dc57fd6d..ab18dc6a 100644 --- a/frontend/app/search/search-query.js +++ b/frontend/app/search/search-query.js @@ -373,6 +373,11 @@ fm.app.factory("fmSearchQuery", function($rootScope, $compile, fmUtils, $timeout }, showFiles: function(files) { + if(!searchUi._el.is(":visible")) { + routeUi.hide(); + searchUi.show(); + } + scope.submittedSearchString = ""; scope.showAll = true; loadSearchResults(filesUi.parseFiles(files));