WordPress.org

Make WordPress Core

Changeset 29726


Ignore:
Timestamp:
09/10/2014 05:35:38 PM (6 years ago)
Author:
SergeyBiryukov
Message:

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

props senff.
fixes #29617.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/widgets.js

    r28235 r29726  
    6767                e.preventDefault();
    6868            } else if ( target.hasClass('widget-control-close') ) {
    69                 wpWidgets.close( target.closest('div.widget') );
     69                widget = target.closest('div.widget');
     70                widget.removeClass( 'open' );
     71                wpWidgets.close( widget );
    7072                e.preventDefault();
    7173            }
Note: See TracChangeset for help on using the changeset viewer.