Skip to content

Commit

Permalink
Enable the additional media filters. Fixes CMB2#873.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Mar 6, 2017
1 parent 3ad3802 commit cc4be2d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

## [Unreleased][unreleased]

### Enhancements

* Enable the additional media library modal filters. Fixes [#873](https://github.com/WebDevStudios/CMB2/issues/873).

## 2.2.4 - 2017-02-27

### Enhancements
Expand Down
3 changes: 3 additions & 0 deletions js/cmb2.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ window.CMB2 = window.CMB2 || {};
multiple: isList ? 'add' : false
} );

// Enable the additional media filters: https://github.com/WebDevStudios/CMB2/issues/873
modal.states.first().set( 'filterable', 'all' );

cmb.trigger( 'cmb_media_modal_init', media );

handlers.list = function( selection, returnIt ) {
Expand Down
Loading

0 comments on commit cc4be2d

Please sign in to comment.