From 3610dd61a45ea861a5686e1536ebdbd73067e2b0 Mon Sep 17 00:00:00 2001 From: azaozz Date: Tue, 1 Dec 2009 23:51:04 +0000 Subject: [PATCH] Fix canceling when deleting newly added categories and link categories, fixes #11296 git-svn-id: http://svn.automattic.com/wordpress/trunk@12313 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/js/categories.dev.js | 2 +- wp-admin/js/categories.js | 2 +- wp-includes/script-loader.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/js/categories.dev.js b/wp-admin/js/categories.dev.js index 9125ebcbce..cc58eb4a30 100644 --- a/wp-admin/js/categories.dev.js +++ b/wp-admin/js/categories.dev.js @@ -30,5 +30,5 @@ jQuery(document).ready(function($) { else $('#the-list').wpList({ delBefore: delBefore }); - $('.delete a[class^="delete"]').click(function(){return false;}); + $('.delete a[class^="delete"]').live('click', function(){return false;}); }); diff --git a/wp-admin/js/categories.js b/wp-admin/js/categories.js index 0b4d603fd7..45c2358a48 100644 --- a/wp-admin/js/categories.js +++ b/wp-admin/js/categories.js @@ -1 +1 @@ -jQuery(document).ready(function(d){var b=false,e,c,a;if(document.forms.addcat.category_parent){b=document.forms.addcat.category_parent.options}e=function(h,g){var f,i;f=d(""+d("name",h).text()+"").text();i=d("cat",h).attr("id");b[b.length]=new Option(f,i)};a=function(g,f){var i=d("cat",g).attr("id"),h;for(h=0;h"+d("name",h).text()+"").text();i=d("cat",h).attr("id");b[b.length]=new Option(f,i)};a=function(g,f){var i=d("cat",g).attr("id"),h;for(h=0;h 'try{convertEntities(catL10n);}catch(e){};' ) ); - $scripts->add( 'admin-categories', "/wp-admin/js/categories$suffix.js", array('wp-lists'), '20091119' ); + $scripts->add( 'admin-categories', "/wp-admin/js/categories$suffix.js", array('wp-lists'), '20091201' ); $scripts->add_data( 'admin-categories', 'group', 1 ); $scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array('jquery'), '20090623' );