Revert [22387]. see #14466. see #22374.

git-svn-id: http://core.svn.wordpress.org/trunk@22406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-11-06 22:36:24 +00:00
parent 1a3e4a1207
commit 9e2d46819e
2 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ function _sort_name_callback( $a, $b ) {
function wp_list_widget_controls( $sidebar ) { function wp_list_widget_controls( $sidebar ) {
add_filter( 'dynamic_sidebar_params', 'wp_list_widget_controls_dynamic_sidebar' ); add_filter( 'dynamic_sidebar_params', 'wp_list_widget_controls_dynamic_sidebar' );
echo "<div id='sidebar-$sidebar' class='widgets-sortables'>\n"; echo "<div id='$sidebar' class='widgets-sortables'>\n";
$description = wp_sidebar_description( $sidebar ); $description = wp_sidebar_description( $sidebar );

View File

@ -115,7 +115,7 @@ wpWidgets = {
var add = ui.item.find('input.add_new').val(), var add = ui.item.find('input.add_new').val(),
n = ui.item.find('input.multi_number').val(), n = ui.item.find('input.multi_number').val(),
id = the_id, id = the_id,
sb = $(this).attr('id').replace(/^sidebar-/, ''); sb = $(this).attr('id');
ui.item.css({margin:'', 'width':''}); ui.item.css({margin:'', 'width':''});
the_id = ''; the_id = '';
@ -186,7 +186,7 @@ wpWidgets = {
$('div.widgets-sortables').each( function() { $('div.widgets-sortables').each( function() {
if ( $(this).sortable ) if ( $(this).sortable )
a['sidebars[' + $(this).attr('id').replace(/^sidebar-/, '') + ']'] = $(this).sortable('toArray').join(','); a['sidebars[' + $(this).attr('id') + ']'] = $(this).sortable('toArray').join(',');
}); });
$.post( ajaxurl, a, function() { $.post( ajaxurl, a, function() {
@ -197,7 +197,7 @@ wpWidgets = {
}, },
save : function(widget, del, animate, order) { save : function(widget, del, animate, order) {
var sb = widget.closest('div.widgets-sortables').attr('id').replace(/^sidebar-/, ''), data = widget.find('form').serialize(), a; var sb = widget.closest('div.widgets-sortables').attr('id'), data = widget.find('form').serialize(), a;
widget = $(widget); widget = $(widget);
$('.spinner', widget).show(); $('.spinner', widget).show();