Widgets: Toggle widget arrow when the widget is closed using Close link.

props senff.
fixes #29617.

git-svn-id: https://develop.svn.wordpress.org/trunk@29726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-09-10 17:35:38 +00:00
parent 9c48d0f495
commit 69b97690d5
1 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,9 @@ wpWidgets = {
wpWidgets.save( target.closest('div.widget'), 1, 1, 0 );
e.preventDefault();
} else if ( target.hasClass('widget-control-close') ) {
wpWidgets.close( target.closest('div.widget') );
widget = target.closest('div.widget');
widget.removeClass( 'open' );
wpWidgets.close( widget );
e.preventDefault();
}
});