WordPress.org

Make WordPress Core

Changeset 28235


Ignore:
Timestamp:
05/01/2014 02:08:44 PM (7 years ago)
Author:
ocean90
Message:

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

props MikeHansenMe.
fixes #26748.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r28080 r28235  
    22712271.control-section.open .accordion-section-title:after,
    22722272#customize-info.open .accordion-section-title:after,
    2273 .nav-menus-php .menu-item-edit-active .item-edit:before {
     2273.nav-menus-php .menu-item-edit-active .item-edit:before,
     2274.widget.open .widget-top a.widget-action:after {
    22742275    content: '\f142';
    22752276}
  • trunk/src/wp-admin/js/widgets.js

    r27969 r28235  
    5151                        widget.css( css );
    5252                    }
     53                    widget.addClass( 'open' );
    5354                    inside.slideDown('fast');
    5455                } else {
    5556                    inside.slideUp('fast', function() {
    5657                        widget.attr( 'style', '' );
     58                        widget.removeClass( 'open' );
    5759                    });
    5860                }
Note: See TracChangeset for help on using the changeset viewer.