Customizer: remove the `title` attribute from the Preview html element while loading.

Props mehulkaklotar.

Fixes #33250.

git-svn-id: https://develop.svn.wordpress.org/trunk@35391 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2015-10-25 15:13:32 +00:00
parent 1836e14bf2
commit 07041ae87c
2 changed files with 0 additions and 5 deletions

View File

@ -735,9 +735,6 @@ final class WP_Customize_Manager {
'activePanels' => array(),
'activeSections' => array(),
'activeControls' => array(),
'l10n' => array(
'loading' => __( 'Loading...' ), // no ellipsis
),
);
if ( 2 == $this->nonce_tick ) {

View File

@ -124,11 +124,9 @@
// Display a loading indicator when preview is reloading, and remove on failure.
api.preview.bind( 'loading-initiated', function () {
$( 'body' ).addClass( 'wp-customizer-unloading' );
$( 'html' ).prop( 'title', api.settings.l10n.loading );
});
api.preview.bind( 'loading-failed', function () {
$( 'body' ).removeClass( 'wp-customizer-unloading' );
$( 'html' ).prop( 'title', '' );
});
/* Custom Backgrounds */