Widgets: Toggle widget arrow when widget is open/closed.

props MikeHansenMe.
fixes #26748.
Built from https://develop.svn.wordpress.org/trunk@28235


git-svn-id: http://core.svn.wordpress.org/trunk@28063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2014-05-01 14:09:16 +00:00
parent a0086bd102
commit 8e7e53b22e
6 changed files with 9 additions and 5 deletions

View File

@ -2270,7 +2270,8 @@ img {
.control-section.open .accordion-section-title:after, .control-section.open .accordion-section-title:after,
#customize-info.open .accordion-section-title:after, #customize-info.open .accordion-section-title:after,
.nav-menus-php .menu-item-edit-active .item-edit:before { .nav-menus-php .menu-item-edit-active .item-edit:before,
.widget.open .widget-top a.widget-action:after {
content: '\f142'; content: '\f142';
} }

View File

@ -2270,7 +2270,8 @@ img {
.control-section.open .accordion-section-title:after, .control-section.open .accordion-section-title:after,
#customize-info.open .accordion-section-title:after, #customize-info.open .accordion-section-title:after,
.nav-menus-php .menu-item-edit-active .item-edit:before { .nav-menus-php .menu-item-edit-active .item-edit:before,
.widget.open .widget-top a.widget-action:after {
content: '\f142'; content: '\f142';
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -50,10 +50,12 @@ wpWidgets = {
css[ margin ] = widgetWidth - ( targetWidth + 30 ) + 'px'; css[ margin ] = widgetWidth - ( targetWidth + 30 ) + 'px';
widget.css( css ); widget.css( css );
} }
widget.addClass( 'open' );
inside.slideDown('fast'); inside.slideDown('fast');
} else { } else {
inside.slideUp('fast', function() { inside.slideUp('fast', function() {
widget.attr( 'style', '' ); widget.attr( 'style', '' );
widget.removeClass( 'open' );
}); });
} }
e.preventDefault(); e.preventDefault();

File diff suppressed because one or more lines are too long