Theme Installer: Fixes for browsers without pushState.
props gcorne. see #27055. Built from https://develop.svn.wordpress.org/trunk@28141 git-svn-id: http://core.svn.wordpress.org/trunk@27972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
efe36dbd5f
commit
d46037e0b5
|
@ -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 );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue