X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/4d106a6318aa0c508a93acb9e2a6fb146ed177ba..677f87cc48ea9c54bcfdf35412a06f8def139ea5:/redakcja/static/js/wiki/view_editor_wysiwyg.js diff --git a/redakcja/static/js/wiki/view_editor_wysiwyg.js b/redakcja/static/js/wiki/view_editor_wysiwyg.js index 3ccaea71..ac6724a2 100644 --- a/redakcja/static/js/wiki/view_editor_wysiwyg.js +++ b/redakcja/static/js/wiki/view_editor_wysiwyg.js @@ -307,7 +307,6 @@ } } - $(specialCharsContainer).remove(); }); $('#specialCharsClose').click(function(){ $(specialCharsContainer).remove(); @@ -516,7 +515,7 @@ }); $(document).bind('click.blur-overlay', function(event){ - if ($(event.target).parents('.html-editarea').length > 0) { + if ($(event.target).closest('.html-editarea, #specialCharsContainer').length > 0) { return; } save();