Changes between Version 4 and Version 5 of Ticket #12525, comment 4


Ignore:
Timestamp:
Oct 8, 2014, 9:41:58 AM (10 years ago)
Author:
pittlu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12525, comment 4

    v4 v5  
    22{{{
    33#!js
    4 
    54$.fn.modal.Constructor.prototype.enforceFocus = function() {
    65        var $modalElement = this.$element;
     
    1110                                if ($modalElement[0] !== e.target
    1211                                                && !$modalElement.has(e.target).length
    13                                                 && !$parent.is("[class*='cke']")
    14                                                 && !$parent.attr('data-cke-expando')) {
     12                                                && !($parent.is("[class*='cke']"))
     13                                                && !$parent.attr('data-cke-expando')
     14                                                && $parent.closest("[class*='cke']").size()==0) {
    1515                                        $modalElement.focus();
    1616                                }
    1717                        });
    1818};
    19 
    20 
    2119}}}
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy