Making WordPress.org

Changeset 1154


Ignore:
Timestamp:
01/16/2015 06:02:29 PM (10 years ago)
Author:
obenland
Message:

WP.org Themes: Open modal directly, when querying for a single theme.

See #745.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/js/theme.js

    r1152 r1154  
    352352            request = {};
    353353
     354            // Open the modal when matching the route for a single themes.
     355            wp.themes.router.on( 'route:preview', function( slug ) {
     356                this.listenTo( self.view.collection, 'query:success', function() {
     357                    self.view.view.expand( slug );
     358                });
     359            });
     360
    354361            wp.themes.router.on( 'route:tag', function( tag ) {
    355362                $( '#filter-id-' + tag).prop( 'checked', true );
Note: See TracChangeset for help on using the changeset viewer.