Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated syntax and code comments.

  • Loading branch information...
commit fd5fc175b340627727bd5c177447a00836242cf2 1 parent 4879321
Thomas Griffin authored
Showing with 2 additions and 1 deletion.
  1. +1 −1  js/media.js
  2. +1 −0  tgm-new-media-plugin.php
2  js/media.js
View
@@ -9,7 +9,7 @@
jQuery(document).ready(function($){
// Prepare the variable that holds our custom media manager.
var tgm_media_frame;
-
+
// Bind to our click event in order to open up the new media experience.
$(document.body).on('click.tgmOpenMediaManager', '.tgm-open-media', function(e){
// Prevent the default action from occuring.
1  tgm-new-media-plugin.php
View
@@ -109,6 +109,7 @@ public function metabox( $post ) {
echo '<p><strong>' . __( 'Please note that none of this will save when you update the page. This is just for demonstration purposes only!', 'tgm-nmp' ) . '</strong></p>';
echo '<p><a href="#" class="tgm-open-media button button-primary" title="' . esc_attr__( 'Click Here to Open the Media Manager', 'tgm-nmp' ) . '">' . __( 'Click Here to Open the Media Manager', 'tgm-nmp' ) . '</a></p>';
echo '<p><label for="tgm-new-media-image">' . __( 'Our Image Goes Here!', 'tgm-nmp' ) . '</label> <input type="text" id="tgm-new-media-image" size="70" value="" /></p>';
+ wp_editor( '', 'soliloquy-editor' );
echo '</div>';
}
Please sign in to comment.
Something went wrong with that request. Please try again.