Make WordPress Core

Changeset 12313


Ignore:
Timestamp:
12/01/2009 11:51:04 PM (15 years ago)
Author:
azaozz
Message:

Fix canceling when deleting newly added categories and link categories, fixes #11296

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/categories.dev.js

    r12236 r12313  
    3131        $('#the-list').wpList({ delBefore: delBefore });
    3232
    33     $('.delete a[class^="delete"]').click(function(){return false;});
     33    $('.delete a[class^="delete"]').live('click', function(){return false;});
    3434});
  • trunk/wp-admin/js/categories.js

    r12236 r12313  
    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("<span>"+d("name",h).text()+"</span>").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<b.length;h++){if(i==b[h].value){b[h]=null}}};c=function(f){if("undefined"!=showNotice){return showNotice.warn()?f:false}return f};if(b){d("#the-list").wpList({addAfter:e,delBefore:c,delAfter:a})}else{d("#the-list").wpList({delBefore:c})}d('.delete a[class^="delete"]').click(function(){return false})});
     1jQuery(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("<span>"+d("name",h).text()+"</span>").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<b.length;h++){if(i==b[h].value){b[h]=null}}};c=function(f){if("undefined"!=showNotice){return showNotice.warn()?f:false}return f};if(b){d("#the-list").wpList({addAfter:e,delBefore:c,delAfter:a})}else{d("#the-list").wpList({delBefore:c})}d('.delete a[class^="delete"]').live("click",function(){return false})});
  • trunk/wp-includes/script-loader.php

    r12293 r12313  
    235235        ) );
    236236
    237         $scripts->add( 'admin-categories', "/wp-admin/js/categories$suffix.js", array('wp-lists'), '20091119' );
     237        $scripts->add( 'admin-categories', "/wp-admin/js/categories$suffix.js", array('wp-lists'), '20091201' );
    238238        $scripts->add_data( 'admin-categories', 'group', 1 );
    239239
Note: See TracChangeset for help on using the changeset viewer.