Ticket #14466: 14466.diff
File 14466.diff, 3.9 KB (added by , 14 years ago) |
---|
-
wp-admin/css/ie.dev.css
379 379 width: 99%; 380 380 } 381 381 382 # wp_inactive_widgets {382 #sidebar-wp_inactive_widgets { 383 383 padding-bottom: 8px; 384 384 } 385 385 … … 408 408 } 409 409 410 410 .widget-liquid-right .widget, 411 # wp_inactive_widgets .widget {411 #sidebar-wp_inactive_widgets .widget { 412 412 position: relative; 413 413 } 414 414 -
wp-admin/css/widgets.dev.css
28 28 } 29 29 30 30 .widget-liquid-right .widget, 31 # wp_inactive_widgets .widget,31 #sidebar-wp_inactive_widgets .widget, 32 32 .widget-liquid-right .sidebar-description { 33 33 width: 250px; 34 34 margin: 0 auto 20px; … … 39 39 margin-bottom: 10px; 40 40 } 41 41 42 # wp_inactive_widgets .widget {42 #sidebar-wp_inactive_widgets .widget { 43 43 margin: 0 10px 20px; 44 44 float: left; 45 45 } … … 108 108 padding: 7px 5px 0; 109 109 } 110 110 111 # wp_inactive_widgets {111 #sidebar-wp_inactive_widgets { 112 112 padding: 5px 5px 0; 113 113 } 114 114 … … 140 140 width: 250px; 141 141 } 142 142 143 # wp_inactive_widgets .widget-placeholder {143 #sidebar-wp_inactive_widgets .widget-placeholder { 144 144 margin: 0 10px 20px; 145 145 float: left; 146 146 } … … 274 274 275 275 #available-widgets .widget-control-edit .add, 276 276 #widgets-right .widget-control-edit .edit, 277 # wp_inactive_widgets .widget-control-edit .edit {277 #sidebar-wp_inactive_widgets .widget-control-edit .edit { 278 278 display: inline; 279 279 } 280 280 -
wp-admin/includes/widgets.php
67 67 function wp_list_widget_controls( $sidebar ) { 68 68 add_filter( 'dynamic_sidebar_params', 'wp_list_widget_controls_dynamic_sidebar' ); 69 69 70 echo "<div id=' $sidebar' class='widgets-sortables'>\n";70 echo "<div id='sidebar-$sidebar' class='widgets-sortables'>\n"; 71 71 72 72 $description = wp_sidebar_description( $sidebar ); 73 73 -
wp-admin/js/widgets.dev.js
21 21 $(this).siblings('.widget-holder').parent().toggleClass('closed'); 22 22 }); 23 23 24 sidebars.not('# wp_inactive_widgets').each(function(){24 sidebars.not('#sidebar-wp_inactive_widgets').each(function(){ 25 25 var h = 50, H = $(this).children('.widget').length; 26 26 h = h + parseInt(H * 48, 10); 27 27 $(this).css( 'minHeight', h + 'px' ); … … 175 175 }; 176 176 177 177 $('div.widgets-sortables').each( function() { 178 a['sidebars[' + $(this).attr('id') + ']'] = $(this).sortable('toArray').join(',');178 a['sidebars[' + wpWidgets.stripSidebarId($(this).attr('id')) + ']'] = $(this).sortable('toArray').join(','); // 179 179 }); 180 180 181 181 $.post( ajaxurl, a, function() { … … 186 186 }, 187 187 188 188 save : function(widget, del, animate, order) { 189 var sb = w idget.closest('div.widgets-sortables').attr('id'), data = widget.find('form').serialize(), a;189 var sb = wpWidgets.stripSidebarId(widget.closest('div.widgets-sortables').attr('id')), data = widget.find('form').serialize(), a; 190 190 widget = $(widget); 191 191 $('.ajax-feedback', widget).css('visibility', 'visible'); 192 192 … … 246 246 }, 247 247 248 248 resize : function() { 249 $('div.widgets-sortables').not('# wp_inactive_widgets').each(function(){249 $('div.widgets-sortables').not('#sidebar-wp_inactive_widgets').each(function(){ 250 250 var h = 50, H = $(this).children('.widget').length; 251 251 h = h + parseInt(H * 48, 10); 252 252 $(this).css( 'minHeight', h + 'px' ); … … 273 273 widget.children('.widget-inside').slideUp('fast', function(){ 274 274 widget.css({'width':'','marginLeft':''}); 275 275 }); 276 }, 277 278 stripSidebarId : function(id) { 279 return id.replace(/sidebar-/, ''); 276 280 } 277 281 }; 278 282