Update meta-boxes.js

Add filter options to product gallery images selector to make visible filters of plugins such as the Enhanced Media Library
This commit is contained in:
Vit Rozkovec 2014-01-08 01:28:39 +01:00
parent a1ea33b828
commit 17a02b71c0
1 changed files with 8 additions and 2 deletions

View File

@ -1508,7 +1508,13 @@ jQuery( function($){
button: {
text: $el.data('update'),
},
multiple: true
multiple: true,
states : [
new wp.media.controller.Library({
title: $el.data('choose'),
filterable : 'all'
})
]
});
// When an image is selected, run a callback.
@ -1584,4 +1590,4 @@ jQuery( function($){
return false;
});
});
});