Ticket #60666: 60666.diff
File 60666.diff, 908 bytes (added by , 5 months ago) |
---|
-
src/js/media/controllers/state.js
167 167 mode = this.get('menu'), 168 168 actionMenuItems, 169 169 actionMenuLength, 170 view; 170 view, 171 actionMenuItems = this.frame.menu.get('views'), 172 actionMenuLength = actionMenuItems ? actionMenuItems.views.get().length : 0; 171 173 172 174 if ( this.frame.menu ) { 173 actionMenuItems = this.frame.menu.get('views'),174 actionMenuLength = actionMenuItems ? actionMenuItems.views.get().length : 0,175 175 // Show action menu only if it is active and has more than one default element. 176 176 this.frame.$el.toggleClass( 'hide-menu', ! mode || actionMenuLength < 2 ); 177 177 } 178 if ( ! mode ) {178 if ( ! mode || actionMenuLength < 2) { 179 179 return; 180 180 } 181 181