mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 18:16:08 +00:00
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() {
|
themes: function() {
|
||||||
$( '.theme-search' ).val( '' );
|
$( '.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 ) {
|
search: function( query ) {
|
||||||
$( '.theme-search' ).val( query );
|
$( '.theme-search' ).val( query );
|
||||||
|
},
|
||||||
|
|
||||||
|
navigate: function() {
|
||||||
|
if ( Backbone.history._hasPushState ) {
|
||||||
|
Backbone.Router.navigate.apply( this, arguments );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
2
wp-admin/js/theme.min.js
vendored
2
wp-admin/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user