X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/4d106a6318aa0c508a93acb9e2a6fb146ed177ba..0a12bbba32c589d32de156783d205fd31ba9065a:/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..75c1c635 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(); @@ -462,7 +461,6 @@ $overlay.remove(); }, error: function(text){ - $overlay.remove(); alert('Błąd! ' + text); } }) @@ -516,7 +514,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();