mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
fix focus in ui dialog
This commit is contained in:
@@ -155,6 +155,13 @@
|
||||
$('body').addClass('{{ cssfile }}');
|
||||
|
||||
});
|
||||
|
||||
// manage focus in a ui dialog
|
||||
$(document).on('focusin', function(e) {
|
||||
if ($(event.target).closest(".mce-window").length) {
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% include "common/templates.html.twig" %}
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user