Skip to content

Commit

Permalink
Hide search field if video folder is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Aug 30, 2024
1 parent d00b294 commit 80e8a59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/js/src/views/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ var ToolbarView = BrightcoveView.extend({
foldersChanged: function (event) {
this.model.set('old_folder_id', this.model.get('folder_id'));
this.model.set('folder_id', event.target.value);
// hide search field if video folder is selected
this.$el.find('#media-search-input, #media-search').toggle(event.target.value === 'all');

wpbc.broadcast.trigger('change:folder', event.target.value);
},

Expand Down

0 comments on commit 80e8a59

Please sign in to comment.