Skip to content
Snippets Groups Projects
Commit 953bb367 authored by srosse's avatar srosse
Browse files

OO-3620: don't intercept clicks in modal panel to close edited fragment

parent 5f6bfc49
No related branches found
No related tags found
No related merge requests found
......@@ -17,11 +17,9 @@ jQuery(function() {
return false;
},
accepts: function (el, target) {
console.log('accepts');
return true;
},
moves: function (el, container, handle) {
console.log('moves');
return handle.classList.contains('panel-heading') || handle.classList.contains('panel-title');
}
}).on('drop', function(el, target, source, sibling) {
......
......@@ -71,7 +71,7 @@
} else {
var edited = jQuery(e.target).closest(".o_page_fragment_edit").length > 0
|| jQuery(e.target).closest(".o_page_side_options").length > 0;
if(!edited) {
if(!edited && jQuery(".o_layered_panel .modal-dialog").length == 0) {
o_XHREvent(componentUrl, false, false, 'cid', 'close_edit_fragment');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment