File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
gocam_view/templates/gocam_view Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 10101010 }
10111011 } ) ;
10121012
1013+ const searchBoxDiv = document . getElementById ( 'search-box' ) ;
1014+
1015+ window . hideSearch = function ( ) {
1016+ searchBoxDiv . style . display = 'none' ;
1017+ }
1018+
10131019 cy . elements ( ) . bind ( "click" , ( event ) => {
10141020 const data = event . target . data ( ) ;
10151021 currentData = data ;
1022+ hideSearch ( ) ;
10161023
10171024 updateDetails ( ) ;
10181025 } ) ;
10191026
1020- const searchBoxDiv = document . getElementById ( 'search-box' ) ;
10211027 window . showSearch = function ( ) {
10221028 if ( searchBoxDiv . style . display == 'none' ) {
10231029 showCyPanel ( ) ;
10261032 currentData = undefined ;
10271033 updateDetails ( ) ;
10281034 } else {
1029- searchBoxDiv . style . display = 'none' ;
1035+ hideSearch ( ) ;
10301036 }
10311037 }
10321038
You can’t perform that action at this time.
0 commit comments