[FIX] website.editor: remove javascript exception when the user close the modal after add a question in website_forum

This commit is contained in:
Christophe Matthieu
2015-04-07 16:28:19 +02:00
parent 10f5001c25
commit c2c093d6b8
@@ -519,7 +519,7 @@ define(['summernote/summernote'], function () {
var r = range.create();
if ($(r ? dom.node(r.sc) : event.srcElement || event.target).closest('#website-top-navbar, #oe_main_menu_navbar, .note-popover, .note-toolbar, .modal').length) {
if (!$(event.target).is('input, select, label, button, a')) {
if (!remember_selection) {
if (!remember_selection && $editable[0]) {
remember_selection = range.create(dom.firstChild($editable[0]), 0);
}
try {