forked from Techsystech/web
[FIX] web_drop_target: Process only if you are on the expected area
parent
b01ae3262b
commit
24631fe75b
|
@ -2,7 +2,7 @@
|
||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
{
|
{
|
||||||
"name": "Drop target support",
|
"name": "Drop target support",
|
||||||
"version": "11.0.1.0.0",
|
"version": "11.0.2.0.0",
|
||||||
"author": "Therp BV,Odoo Community Association (OCA)",
|
"author": "Therp BV,Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/OCA/web",
|
"website": "https://github.com/OCA/web",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
* Holger Brunn <hbrunn@therp.nl>
|
* Holger Brunn <hbrunn@therp.nl>
|
||||||
* Pablo Fuentes <pablo@studio73.es>
|
* Pablo Fuentes <pablo@studio73.es>
|
||||||
* Akim Juillerat <akim.juillerat@camptocamp.com>
|
* Akim Juillerat <akim.juillerat@camptocamp.com>
|
||||||
|
* Enric Tobella <etobella@creublanca.es>
|
||||||
|
|
|
@ -26,6 +26,9 @@ odoo.define('web_drop_target', function(require) {
|
||||||
},
|
},
|
||||||
|
|
||||||
_on_drop: function(e) {
|
_on_drop: function(e) {
|
||||||
|
if (!this._drop_overlay){
|
||||||
|
return;
|
||||||
|
}
|
||||||
var drop_items = this._get_drop_items(e);
|
var drop_items = this._get_drop_items(e);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this._remove_overlay();
|
this._remove_overlay();
|
||||||
|
|
Loading…
Reference in New Issue