WordPress.org

Make WordPress Core

Changeset 28141


Ignore:
Timestamp:
04/16/2014 12:03:57 AM (5 years ago)
Author:
nacin
Message:

Theme Installer: Fixes for browsers without pushState.

props gcorne.
see #27055.

File:
1 edited

Legend:

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

    r28126 r28141  
    11761176    themes: function() {
    11771177        $( '.theme-search' ).val( '' );
     1178    },
     1179
     1180    navigate: function() {
     1181        if ( Backbone.history._hasPushState ) {
     1182            Backbone.Router.navigate.apply( this, arguments );
     1183        }
    11781184    }
    11791185
     
    15731579    search: function( query ) {
    15741580        $( '.theme-search' ).val( query );
     1581    },
     1582
     1583    navigate: function() {
     1584        if ( Backbone.history._hasPushState ) {
     1585            Backbone.Router.navigate.apply( this, arguments );
     1586        }
    15751587    }
    15761588});
Note: See TracChangeset for help on using the changeset viewer.