Changeset 57688
- Timestamp:
- 02/21/2024 07:44:17 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/controllers/state.js
r47122 r57688 166 166 var menu = this.frame.menu, 167 167 mode = this.get('menu'), 168 actionMenuItems = this.frame.menu.get('views'), 169 actionMenuLength = actionMenuItems ? actionMenuItems.views.get().length : 0, 168 170 view; 169 171 170 this.frame.$el.toggleClass( 'hide-menu', ! mode ); 172 // Show action menu only if it is active and has more than one default element. 173 this.frame.$el.toggleClass( 'hide-menu', ! mode || actionMenuLength < 2 ); 171 174 if ( ! mode ) { 172 175 return;
Note: See TracChangeset
for help on using the changeset viewer.