Changeset 7086
- Timestamp:
- 02/28/2008 09:11:11 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/widgets-rtl.css
r6754 r7086 35 35 } 36 36 37 li.widget-list-control-item h4.widget-title a, 38 #dragHelper li.widget-list-control-item h4.widget-title a, 39 #draghelper li.widget-list-control-item h4.widget-title a:visited { 40 right: auto; 41 left: 2em; 42 } 43 37 44 li.widget-list-control-item div.widget-control { 38 45 padding: 0 0 0 10px; -
trunk/wp-admin/css/widgets.css
r6754 r7086 15 15 clear: right; 16 16 width: 300px; 17 position: relative; 17 18 } 18 19 … … 96 97 97 98 li.widget-list-control-item h4, #dragHelper li.widget-list-control-item h4 { 98 position: relative;99 99 margin: 0; 100 100 background-color: #2683ae; … … 114 114 } 115 115 116 li.widget-list-control-item h4.widget-title a, li.widget-list-control-item h4.widget-title a:visited { 116 li.widget-list-control-item h4.widget-title a, 117 #dragHelper li.widget-list-control-item h4.widget-title a, 118 #draghelper li.widget-list-control-item h4.widget-title a:visited { 117 119 color: #fff; 120 right: 2em; 118 121 } 119 122 -
trunk/wp-admin/includes/widgets.php
r7080 r7086 64 64 } else { 65 65 $action = 'edit'; 66 $edit_url = add_query_arg( array(66 $edit_url = clean_url( add_query_arg( array( 67 67 'sidebar' => $sidebar, 68 68 'edit' => $widget['id'], 69 69 'key' => array_search( $widget['id'], $sidebars_widgets[$sidebar] ), 70 ) ) ;71 $widget_control_template = '< textarea>' . htmlspecialchars( $widget_control_template ) . '</textarea>';70 ) ) ); 71 $widget_control_template = '<li><textarea rows="1" cols="1">' . htmlspecialchars( $widget_control_template ) . '</textarea></li>'; 72 72 } 73 73 -
trunk/wp-admin/js/widgets.js
r6679 r7086 7 7 var toggleWidget = function( li ) { 8 8 var width = li.find('input.widget-width').val(); 9 return li.children('div.widget-control').each( function() { 9 10 // it seems IE chokes on these animations because of the positioning/floating 11 var widgetAnim = $.browser.msie ? function() { 10 12 var t = $(this); 11 13 if ( t.is(':visible') ) { 12 t.animate( { height: 'hide' } ); 14 li.css( 'marginLeft', 0 ); 15 t.siblings('h4').children('a').text( widgetsL10n.edit ); 16 } else { 17 if ( width > 250 ) 18 li.css( 'marginLeft', ( width - 250 ) * -1 ); 19 t.siblings('h4').children('a').text( widgetsL10n.cancel ); 20 } 21 t.toggle(); 22 } : function() { 23 var t = $(this); 24 25 if ( t.is(':visible') ) { 13 26 if ( width > 250 ) 14 27 li.animate( { marginLeft: 0 } ); 15 28 t.siblings('h4').children('a').text( widgetsL10n.edit ); 16 29 } else { 17 t.animate( { height: 'show' } );18 30 if ( width > 250 ) 19 31 li.animate( { marginLeft: ( width - 250 ) * -1 } ); 20 32 t.siblings('h4').children('a').text( widgetsL10n.cancel ); 21 33 } 22 } ).end(); 34 t.animate( { height: 'toggle' } ); 35 }; 36 37 return li.children('div.widget-control').each( widgetAnim ).end(); 23 38 }; 24 39 -
trunk/wp-includes/js/wp-lists.js
r7082 r7086 9 9 var pp = s.split('&'); 10 10 for ( var i in pp ) { 11 if ( $.isFunction(pp.hasOwnProperty) && !pp.hasOwnProperty(i) ) { continue; } 11 12 var p = pp[i].split('='); 12 13 r[p[0]] = p[1];
Note: See TracChangeset
for help on using the changeset viewer.