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

props MikeHansenMe.
fixes #26748.

git-svn-id: https://develop.svn.wordpress.org/trunk@28235 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2014-05-01 14:08:44 +00:00
parent ed52ae7a3f
commit a54c311e4f
2 changed files with 4 additions and 1 deletions

View File

@ -2270,7 +2270,8 @@ img {
.control-section.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';
}

View File

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