Make WordPress Core

Ticket #21460: 21460.patch

File 21460.patch, 759 bytes (added by azaozz, 13 years ago)
  • wp-includes/js/quicktags.dev.js

     
    182182                // listen for click events
    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;
    186186
     187                        // don't call the callback on pressing the accesskey when the button is not visible
     188                        if ( !visible )
     189                                return;
     190
    187191                        // as long as it has the class ed_button, execute the callback
    188192                        if ( / ed_button /.test(' ' + target.className + ' ') ) {
    189193                                // we have to reassign canvas here