3
0
Fork 0

[FIX] web_drop_target: Process only if you are on the expected area

12.0
Enric Tobella 2019-06-25 16:16:31 +02:00 committed by George Daramouskas
parent b01ae3262b
commit 24631fe75b
No known key found for this signature in database
GPG Key ID: 5B4EF742F8CD859C
5 changed files with 17 additions and 13 deletions

View File

@ -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",

View File

@ -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>

View File

@ -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();