Ticket #6191: 6191.diff
File 6191.diff, 993 bytes (added by , 16 years ago) |
---|
-
wp-admin/js/widgets.js
104 104 $('a.widget-control-remove', context).click( function() { 105 105 var w = $(this).parents('li:first').find('input[@name^="widget-id"]').val(); 106 106 $(this).parents('li:first').remove(); 107 var t = $('#widget-list ul#widget-control-info-' + w + ' textarea'); 108 t.parent ().html( t.text() ).parents('li.widget-list-item:first').children( 'h4' ).children('a.widget-action')107 var t = $('#widget-list ul#widget-control-info-' + w + ' textarea'); // will be empty for multi-widgets 108 t.parents('.widget-control-info:first').html( t.text() ).parents('li.widget-list-item:first').children( 'h4' ).children('a.widget-action') 109 109 .show().text( widgetsL10n.add ).unbind().click( addClick ); 110 110 var n = parseInt( $('#widget-count').text(), 10 ) - 1; 111 111 $('#widget-count').text( n.toString() )