[FIX] website editor: resize snippet loose the focus

This commit is contained in:
Christophe Matthieu
2015-01-23 12:14:15 +01:00
parent 5a2fc7b15c
commit 1c4e6c87a0
@@ -378,7 +378,7 @@
var snipped_event_flag;
$(document).on('click', '*', function (event) {
var srcElement = event.srcElement || (event.originalEvent && (event.originalEvent.originalTarget || event.originalEvent.target) || event.target);
if (snipped_event_flag===srcElement || !srcElement) {
if (self.editor_busy || snipped_event_flag===srcElement || !srcElement) {
return;
}
snipped_event_flag = srcElement;
@@ -1396,7 +1396,9 @@
$body.unbind('mousemove', body_mousemove);
$body.unbind('mouseup', body_mouseup);
$body.removeClass(cursor);
self.BuildingBlock.editor_busy = false;
setTimeout(function () {
self.BuildingBlock.editor_busy = false;
},0);
self.$target.removeClass("resize_editor_busy");
};
$body.mousemove(body_mousemove);