From 0a7871c4ab331fe077ad510ff7551caa5a4c3e7c Mon Sep 17 00:00:00 2001 From: azaozz Date: Tue, 14 Oct 2008 10:33:18 +0000 Subject: [PATCH] Quick Edit: remove action links, remove row titles, add hint in footer git-svn-id: http://svn.automattic.com/wordpress/trunk@9162 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-footer.php | 4 ++++ wp-admin/includes/template.php | 10 ++-------- wp-admin/js/edit-comments.js | 28 ++++++++++++++++------------ wp-admin/js/inline-edit-post.js | 12 +----------- wp-admin/js/inline-edit-tax.js | 10 ---------- wp-includes/script-loader.php | 11 +++++------ 6 files changed, 28 insertions(+), 47 deletions(-) diff --git a/wp-admin/admin-footer.php b/wp-admin/admin-footer.php index 520f51240..13781d3b1 100644 --- a/wp-admin/admin-footer.php +++ b/wp-admin/admin-footer.php @@ -17,6 +17,10 @@ do_action('in_admin_footer', ''); $upgrade = apply_filters( 'update_footer', '' ); echo __('Thank you for creating with WordPress').' | '.__('Documentation').' | '.__('Feedback').' '.$upgrade; + +$quick_edit_help = array( 'edit.php', 'edit-pages.php', 'edit-comments.php', 'edit-tags.php', 'categories.php', 'edit-link-categories.php' ); +if ( in_array($pagenow, $quick_edit_help) ) + echo '
' . __('Hint: double-click on a row to open Quick Edit.'); ?>

diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 2acf9b3e1..6901ff20d 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -123,7 +123,6 @@ function _cat_row( $category, $level, $name_override = false ) { $edit = "name)) . "'>" . attribute_escape( $name ) . '
'; $actions = array(); $actions['edit'] = '' . __('Edit') . ''; - $actions['inline hide-if-no-js'] = '' . __('Quick Edit') . ''; if ( $default_cat_id != $category->term_id ) $actions['delete'] = "term_id) . "' onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this category '%s'\n 'Cancel' to stop, 'OK' to delete."), $name )) . "') ) { return true;}return false;\">" . __('Delete') . ""; $action_count = count($actions); @@ -207,7 +206,7 @@ function inline_edit_term_row($type) { $hidden = (array) get_user_option( "manage-$type-columns-hidden" ); ?>
-