File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 307307 dir : e . dir ? e . dir : '/'
308308 } ;
309309 this . _changeUrl ( params . view , params . dir ) ;
310- OC . Apps . hideAppSidebar ( $ ( '.detailsView' ) ) ;
310+ OCA . Files . Sidebar . close ( ) ;
311311 this . navigation . getActiveContainer ( ) . trigger ( new $ . Event ( 'urlChanged' , params ) ) ;
312312 }
313313 } ,
337337 _onChangeViewerMode : function ( e ) {
338338 var state = ! ! e . viewerModeEnabled ;
339339 if ( e . viewerModeEnabled ) {
340- OC . Apps . hideAppSidebar ( $ ( '.detailsView' ) ) ;
340+ OCA . Files . Sidebar . close ( ) ;
341341 }
342342 $ ( '#app-navigation' ) . toggleClass ( 'hidden' , state ) ;
343343 $ ( '.app-files' ) . toggleClass ( 'viewer-mode no-sidebar' , state ) ;
Original file line number Diff line number Diff line change 4545 type : OCA . Files . FileActions . TYPE_DROPDOWN ,
4646 actionHandler : function ( fileName , context ) {
4747 var fileModel = context . fileInfoModel ;
48- OC . Apps . hideAppSidebar ( $ ( '.detailsView' ) ) ;
48+ OCA . Files . Sidebar . close ( ) ;
4949 OCA . Files . App . setActiveView ( 'files' , { silent : true } ) ;
5050 OCA . Files . App . fileList . changeDirectory ( fileModel . get ( 'path' ) , true , true ) . then ( function ( ) {
5151 OCA . Files . App . fileList . scrollTo ( fileModel . get ( 'name' ) ) ;
You can’t perform that action at this time.
0 commit comments