/** * Jetpack Gallery Settings */ ( function ( $ ) { var media = wp.media; // Wrap the render() function to append controls. media.view.Settings.Gallery = media.view.Settings.Gallery.extend( { render: function () { var $el = this.$el; media.view.Settings.prototype.render.apply( this, arguments ); // Append the type template and update the settings. $el.append( media.template( 'jetpack-gallery-settings' ) ); media.gallery.defaults.type = 'default'; // lil hack that lets media know there's a type attribute. this.update.apply( this, [ 'type' ] ); // Hide the Columns setting for all types except Default $el .find( 'select[name=type]' ) .on( 'change', function () { var columnSetting = $el.find( 'select[name=columns]' ).closest( 'label.setting' ); if ( 'default' === $( this ).val() || 'thumbnails' === $( this ).val() ) { columnSetting.show(); } else { columnSetting.hide(); } } ) .change(); return this; }, } ); } )( jQuery );
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
blocks | Folder | 0755 |
|
|
build | Folder | 0755 |
|
|
fonts | Folder | 0755 |
|
|
genericons | Folder | 0755 |
|
|
lib | Folder | 0755 |
|
|
social-logos | Folder | 0755 |
|
|
accessible-focus.js | File | 620 B | 0644 |
|
blogging-prompts.php | File | 8.49 KB | 0644 |
|
class.jetpack-provision.php | File | 9.65 KB | 0644 |
|
connect-button.js | File | 737 B | 0644 |
|
crowdsignal-shortcode.js | File | 660 B | 0644 |
|
crowdsignal-survey.js | File | 277 B | 0644 |
|
facebook-embed.js | File | 1 KB | 0644 |
|
gallery-settings.js | File | 1 KB | 0644 |
|
genericons.php | File | 565 B | 0644 |
|
jetpack-admin.js | File | 1.56 KB | 0644 |
|
jetpack-connection-banner.js | File | 1.17 KB | 0644 |
|
jetpack-deactivate-dialog.js | File | 2.8 KB | 0644 |
|
jetpack-modules.js | File | 2.42 KB | 0644 |
|
jetpack-modules.models.js | File | 2.08 KB | 0644 |
|
jetpack-modules.views.js | File | 1.69 KB | 0644 |
|
jetpack-recommendations-banner.js | File | 1.79 KB | 0644 |
|
jetpack-server-sandbox.php | File | 1.36 KB | 0644 |
|
polldaddy-shortcode.js | File | 2.66 KB | 0644 |
|
social-logos.php | File | 1014 B | 0644 |
|
twitter-timeline.js | File | 351 B | 0644 |
|