Created
April 22, 2013 18:41
-
-
Save staylor/5437430 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the media frame. | |
mediaFrame = wp.media.frames.formatMedia = wp.media({ | |
frame : 'select', | |
displaySettings: true, | |
// Set the title of the modal. | |
title: $el.data('choose'), | |
// Tell the modal to show only items matching the current mime type. | |
library: { | |
type: mime | |
}, | |
// Customize the submit button. | |
button: { | |
// Set the text of the button. | |
text: $el.data('update') | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment