Add save changes reminder to Widgets admin pending revamp in 2.8. Props mdawaffe. fixes #7863

git-svn-id: https://develop.svn.wordpress.org/trunk@9140 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-10-13 23:09:15 +00:00
parent 83756cee0f
commit f021172259
3 changed files with 18 additions and 2 deletions

View File

@@ -222,11 +222,13 @@ function wp_default_scripts( &$scripts ) {
'saveText' => attribute_escape(__('Save »')),
'confirmText' => __("Are you sure you want to delete the file '%title%'?\nClick ok to delete or cancel to go back.")
) );
$scripts->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '20080503' );
$scripts->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '20081010' );
$scripts->localize( 'admin-widgets', 'widgetsL10n', array(
'add' => __('Add'),
'edit' => __('Edit'),
'cancel' => __('Cancel'),
'lameReminder' => __('Remember to click the "Save Changes" button at the bottom of the Current Widgets column after you\'re all done!'),
'lamerReminder' => __("You're about to leave without having saved your changes!")
));
$scripts->add( 'word-count', '/wp-admin/js/word-count.js', array( 'jquery' ), '20080423' );