@@ -82,6 +82,7 @@ function FileBrowserInclude(mode, info, doesOpenLast = true) {
8282		const  $page  =  Page ( strings [ "file browser" ] . capitalize ( ) ,  { 
8383			lead : $lead , 
8484		} ) ; 
85+ 		let  hideSearchBar  =  ( )  =>  { } ; 
8586		const  $content  =  helpers . parseHTML ( 
8687			mustache . render ( _template ,  { 
8788				type : mode , 
@@ -246,10 +247,11 @@ function FileBrowserInclude(mode, info, doesOpenLast = true) {
246247
247248		$search . onclick  =  function  ( )  { 
248249			const  $list  =  $content . get ( "#list" ) ; 
249- 			if  ( $list )  searchBar ( $list ) ; 
250+ 			if  ( $list )  searchBar ( $list ,   ( hide )   =>   ( hideSearchBar   =   hide ) ) ; 
250251		} ; 
251252
252253		$page . onhide  =  function  ( )  { 
254+ 			hideSearchBar ( ) ; 
253255			helpers . hideAd ( ) ; 
254256			actionStack . clearFromMark ( ) ; 
255257			actionStack . remove ( "filebrowser" ) ; 
@@ -740,6 +742,9 @@ function FileBrowserInclude(mode, info, doesOpenLast = true) {
740742		 * @param  {String } name 
741743		 */ 
742744		async  function  navigate ( url ,  name ,  assignBackButton  =  true )  { 
745+ 			if  ( document . getElementById ( "search-bar" ) )  { 
746+ 				hideSearchBar ( ) ; 
747+ 			} 
743748			if  ( ! url )  { 
744749				throw  new  Error ( 'navigate(url, name): "url" is required.' ) ; 
745750			} 
@@ -1001,6 +1006,10 @@ function FileBrowserInclude(mode, info, doesOpenLast = true) {
10011006				} ) , 
10021007			) ; 
10031008
1009+ 			if  ( document . getElementById ( "search-bar" ) )  { 
1010+ 				hideSearchBar ( ) ; 
1011+ 			} 
1012+ 
10041013			const  $oldList  =  $content . get ( "#list" ) ; 
10051014			if  ( $oldList )  { 
10061015				const  {  url }  =  currentDir ; 
0 commit comments