Ticket #26417: 26417.2.diff
File 26417.2.diff, 826 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/js/widgets.js
407 407 sidebarId = chooser.find( '.widgets-chooser-selected' ).data('sidebarId'), 408 408 sidebar = $( '#' + sidebarId ); 409 409 410 // Move the chooser out of the widget411 $('#wpbody-content').append( chooser );412 413 410 widget = $('#available-widgets').find('.widget-in-question').clone(); 414 411 widgetId = widget.attr('id'); 415 412 add = widget.find( 'input.add_new' ).val(); 416 413 n = widget.find( 'input.multi_number' ).val(); 417 414 415 // Remove the cloned chooser from the widget 416 widget.find('.widgets-chooser').remove(); 417 418 418 if ( 'multi' === add ) { 419 419 widget.html( 420 420 widget.html().replace( /<[^<>]+>/g, function(m) {