6 | | $(document).on( |
7 | | 'focusin.modal', |
8 | | function(e) { |
9 | | var $parent = $(e.target.parentNode); |
10 | | if ($modalElement[0] !== e.target |
11 | | && !$modalElement.has(e.target).length |
12 | | && !$parent.attr('data-cke-expando') |
13 | | && $parent.closest("[class*='cke']").size()==0) { |
14 | | $modalElement.focus(); |
15 | | } |
16 | | }); |
| 6 | $(document).on('focusin.modal',function(e) { |
| 7 | var $parent = $(e.target.parentNode); |
| 8 | if ($modalElement[0] !== e.target |
| 9 | && !$modalElement.has(e.target).length |
| 10 | && $(e.target).parentsUntil('*[role="dialog"]').length === 0) { |
| 11 | $modalElement.focus(); |
| 12 | } |
| 13 | }); |