Make WordPress Core

Changeset 33650


Ignore:
Timestamp:
08/19/2015 06:53:36 PM (10 years ago)
Author:
obenland
Message:

Themes: Open preview when requesting a single theme in the installer.

Props kraftner, obenland.
Fixes #28735.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/theme.js

    r33153 r33650  
    455455            current, preview;
    456456
     457        event = event || window.event;
     458
    457459        // Bail if the user scrolled on a touch device
    458460        if ( this.touchDrag === true ) {
     
    16591661            request.theme = slug;
    16601662            self.view.collection.query( request );
     1663            self.view.collection.once( 'update', function() {
     1664                self.view.view.theme.preview();
     1665            });
    16611666        });
    16621667
Note: See TracChangeset for help on using the changeset viewer.