Changeset 22406
- Timestamp:
- 11/06/2012 10:36:24 PM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/widgets.php
r22387 r22406 68 68 add_filter( 'dynamic_sidebar_params', 'wp_list_widget_controls_dynamic_sidebar' ); 69 69 70 echo "<div id=' sidebar-$sidebar' class='widgets-sortables'>\n";70 echo "<div id='$sidebar' class='widgets-sortables'>\n"; 71 71 72 72 $description = wp_sidebar_description( $sidebar ); -
trunk/wp-admin/js/widgets.js
r22387 r22406 116 116 n = ui.item.find('input.multi_number').val(), 117 117 id = the_id, 118 sb = $(this).attr('id') .replace(/^sidebar-/, '');118 sb = $(this).attr('id'); 119 119 120 120 ui.item.css({margin:'', 'width':''}); … … 187 187 $('div.widgets-sortables').each( function() { 188 188 if ( $(this).sortable ) 189 a['sidebars[' + $(this).attr('id') .replace(/^sidebar-/, '')+ ']'] = $(this).sortable('toArray').join(',');189 a['sidebars[' + $(this).attr('id') + ']'] = $(this).sortable('toArray').join(','); 190 190 }); 191 191 … … 198 198 199 199 save : function(widget, del, animate, order) { 200 var sb = widget.closest('div.widgets-sortables').attr('id') .replace(/^sidebar-/, ''), data = widget.find('form').serialize(), a;200 var sb = widget.closest('div.widgets-sortables').attr('id'), data = widget.find('form').serialize(), a; 201 201 widget = $(widget); 202 202 $('.spinner', widget).show();
Note: See TracChangeset
for help on using the changeset viewer.