WordPress.org

Make WordPress Core

Changeset 28940


Ignore:
Timestamp:
07/01/2014 04:22:32 PM (8 years ago)
Author:
helen
Message:

Only apply metabox handle styles and JS events to .postbox .hndle, as opposed to all h3s in a .postbox.

Developers previously relying on the h3 behavior may be affected. You may want to investigate do_meta_boxes() rather than recreating markup.

props SergeyBiryukov, nabil_kadimi.
fixes #28485.

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

Legend:

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

    r28843 r28940  
    706706
    707707.widget .widget-top,
    708 .postbox h3,
    709 .stuffbox h3,
     708.postbox .hndle,
     709.stuffbox .hndle,
    710710.control-section .accordion-section-title,
    711711h3.dashboard-widget-title,
     
    730730}
    731731
    732 .postbox h3,
    733 #namediv h3,
    734 #submitdiv h3 {
     732.postbox .hndle,
     733.stuffbox .hndle {
    735734    border-bottom: 1px solid #eee;
    736735}
     
    13501349}
    13511350
     1351.js .widget .widget-top,
    13521352.js .postbox .hndle {
    13531353    cursor: move;
     
    13811381}
    13821382
    1383 .postbox h3,
    1384 .stuffbox h3 {
    1385     margin-top: 1px;
     1383/* user-select is not a part of the CSS standard - may change behavior in the future */
     1384.postbox .hndle,
     1385.stuffbox .hndle {
    13861386    -webkit-user-select: none;
    13871387    -moz-user-select: none;
    13881388    -ms-user-select: none;
    13891389    user-select: none;
    1390 }
    1391 
    1392 .js .widget .widget-top,
    1393 .js .postbox h3 {
    1394     cursor: move;
    13951390}
    13961391
  • trunk/src/wp-admin/css/ie.css

    r28142 r28940  
    261261}
    262262
    263 #wpbody-content .postbox h3 {
     263#wpbody-content .postbox .hndle {
    264264    margin-bottom: -1px;
    265265}
  • trunk/src/wp-admin/js/postbox.js

    r26822 r28940  
    1010            self.init(page, args);
    1111
    12             $('.postbox h3, .postbox .handlediv').bind('click.postboxes', function() {
     12            $('.postbox .hndle, .postbox .handlediv').bind('click.postboxes', function() {
    1313                var p = $(this).parent('.postbox'), id = p.attr('id');
    1414
     
    2929            });
    3030
    31             $('.postbox h3 a').click( function(e) {
     31            $('.postbox .hndle a').click( function(e) {
    3232                e.stopPropagation();
    3333            });
Note: See TracChangeset for help on using the changeset viewer.