Fix position of "Save widgets settings" warning and problem it causes in Firefox 2, fixes #8221

git-svn-id: http://svn.automattic.com/wordpress/trunk@9822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-11-20 22:18:16 +00:00
parent afa3f9b11b
commit 0f81c61c65
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ jQuery(function($) {
if ( reminded )
return;
window.onbeforeunload = function () { return widgetsL10n.lamerReminder };
$('div.wrap:first').prepend( '<div class="updated" style="display:none"><p>' + widgetsL10n.lameReminder + '</p></div>' ).children( ':first' ).slideDown();
$('h2:first').after( '<div class="updated"><p>' + widgetsL10n.lameReminder + '</p></div>' );
$('#current-widgets .submit input[name=save-widgets]').css( 'background-color', '#ffffe0' ).click( function() {
window.onbeforeunload = null;
} );

View File

@ -228,7 +228,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'admin-gallery', '/wp-admin/js/gallery.js', array( 'jquery-ui-sortable' ), '20080709' );
$scripts->add( 'media-upload', '/wp-admin/js/media-upload.js', array( 'thickbox' ), '20081031' );
$scripts->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '20081010' );
$scripts->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '20081120' );
$scripts->localize( 'admin-widgets', 'widgetsL10n', array(
'add' => __('Add'),
'edit' => __('Edit'),