mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] web_drop_target: Process only if you are on the expected area
This commit is contained in:
committed by
Jasmin Solanki
parent
9aba0ba132
commit
80625e1854
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user