Make WordPress Core

Changeset 21418


Ignore:
Timestamp:
08/03/2012 09:47:58 PM (13 years ago)
Author:
azaozz
Message:

Quicktags: don't call the callback on pressing the access key when a button is not visible, see #21460

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/quicktags.dev.js

    r21070 r21418  
    183183        onclick = function(e) {
    184184            e = e || window.event;
    185             var target = e.target || e.srcElement, i;
     185            var target = e.target || e.srcElement, visible = target.clientWidth || target.offsetWidth, i;
     186
     187            // don't call the callback on pressing the accesskey when the button is not visible
     188            if ( !visible )
     189                return;
    186190
    187191            // as long as it has the class ed_button, execute the callback
Note: See TracChangeset for help on using the changeset viewer.