From 73959104bc55d446a5c77623c4c31b7d7d40a8a5 Mon Sep 17 00:00:00 2001 From: azaozz Date: Fri, 7 Nov 2008 03:13:50 +0000 Subject: [PATCH] Display warning when bulk deleting posts, pages, attachments, comments, etc. git-svn-id: http://svn.automattic.com/wordpress/trunk@9560 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/categories.php | 16 ++++++++++++++++ wp-admin/css/colors-fresh.css | 18 ++++++++++++------ wp-admin/edit-comments.php | 16 ++++++++++++++++ wp-admin/edit-link-categories.php | 16 +++++++++++++++- wp-admin/edit-pages.php | 16 ++++++++++++++++ wp-admin/edit-tags.php | 17 +++++++++++++++++ wp-admin/edit.php | 16 ++++++++++++++++ wp-admin/js/common.js | 17 +++++++++++++++++ wp-admin/link-manager.php | 16 ++++++++++++++++ wp-admin/upload.php | 21 ++++++++++++--------- 10 files changed, 153 insertions(+), 16 deletions(-) diff --git a/wp-admin/categories.php b/wp-admin/categories.php index 2d04a6cb9b..7536c1c9b8 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -289,6 +289,22 @@ if ( $page_links ) + + + + diff --git a/wp-admin/edit-link-categories.php b/wp-admin/edit-link-categories.php index cedbc2edb2..52ce418321 100644 --- a/wp-admin/edit-link-categories.php +++ b/wp-admin/edit-link-categories.php @@ -222,8 +222,22 @@ if ( $page_links ) - + diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index 6402345804..7a2cee0658 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -305,4 +305,20 @@ endif; // posts; + + diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 9be7c33668..c032c66dce 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -279,6 +279,23 @@ else + + + + + diff --git a/wp-admin/js/common.js b/wp-admin/js/common.js index 5d3a262595..14cff75b96 100644 --- a/wp-admin/js/common.js +++ b/wp-admin/js/common.js @@ -11,6 +11,23 @@ jQuery(document).ready( function() { jQuery('form.validate').submit( function() { return wpAjax.validateForm( jQuery(this) ); } ); } }); + +// stub for doing better warnings +(function($){ + showNotice = { + warn : function(text) { + if ( confirm(text) ) + return true; + + return false; + }, + + note : function(text) { + alert(text); + } + } +})(jQuery); + /* (function($) { $.fn.tTips = function() { diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 9a17c45bbd..04395c43cc 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -271,4 +271,20 @@ if ( $links ) { + + diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 3ab3921ab0..463df1ba84 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -450,21 +450,24 @@ endif; // posts; +