• Hi guys,

    I’d like to tweak the “Edit Gallery” popup window. I’m trying to add new custom items with jQuery. For instance, I want to insert another input element below “Gallery Settings”.
    Please refer to the below screenshot link.
    https://www.dropbox.com/s/l88kv5gtslzh0u5/edit-gallery.png?dl=0

    Unfortunately, It was not easy for me because I’m not familiar with Backbone.js. “Edit Gallery” seems work with Backbone.js & Underscore.

    I guess Line 187 at /wp-includes/js/media-views.js gives me a chance to bind event handler.

    this.trigger( 'render', view );

    So, I tried like below codes at the end of html,

    wp.media.controller.Region.on('render', function(view){
    	// code work…
    });

    But It does not work. 😥

  • The topic ‘How to bind Backbone.js event handler for tweaking "Edit Gallery”’ is closed to new replies.