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

props senff.
fixes #29617.
Built from https://develop.svn.wordpress.org/trunk@29726


git-svn-id: http://core.svn.wordpress.org/trunk@29500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2014-09-10 17:36:15 +00:00
parent 7dcabd849a
commit ee6af4f40c
2 changed files with 4 additions and 2 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();
}
});

File diff suppressed because one or more lines are too long