WordPress.org

Making WordPress.org

Changeset 1446


Ignore:
Timestamp:
03/23/2015 05:08:24 PM (5 years ago)
Author:
obenland
Message:

WP.org Themes: Close modal when returning to tag/search/author queries.

Fixes #966.

File:
1 edited

Legend:

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

    r1444 r1446  
    17311731
    17321732                $( '.wp-filter-search' ).focus().trigger( 'keyup' );
     1733                self.view.trigger( 'theme:close' );
    17331734            });
    17341735
     
    17391740                    $( '#filter-id-' + tag ).prop( 'checked', true );
    17401741                });
    1741                 $( 'body' ).toggleClass( 'show-filters' );
     1742                $( 'body' ).removeClass( 'show-filters' ).addClass( 'show-filters' );
    17421743                self.view.applyFilters();
     1744                self.view.trigger( 'theme:close' );
    17431745            });
    17441746
     
    17491751                self.view.collection.query( request );
    17501752                themes.utils.title( author );
     1753                self.view.trigger( 'theme:close' );
    17511754            });
    17521755        }
Note: See TracChangeset for help on using the changeset viewer.