Theme Installer: Fixes for browsers without pushState.

props gcorne.
see #27055.


git-svn-id: https://develop.svn.wordpress.org/trunk@28141 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-04-16 00:03:57 +00:00
parent 6196b0811e
commit 68776bd079
1 changed files with 12 additions and 0 deletions

View File

@ -1175,6 +1175,12 @@ themes.Router = Backbone.Router.extend({
themes: function() {
$( '.theme-search' ).val( '' );
},
navigate: function() {
if ( Backbone.history._hasPushState ) {
Backbone.Router.navigate.apply( this, arguments );
}
}
});
@ -1572,6 +1578,12 @@ themes.InstallerRouter = Backbone.Router.extend({
search: function( query ) {
$( '.theme-search' ).val( query );
},
navigate: function() {
if ( Backbone.history._hasPushState ) {
Backbone.Router.navigate.apply( this, arguments );
}
}
});