mirror of https://github.com/OCA/web.git
[IMP] web_drop_target: black, isort
parent
cb97a80bdd
commit
97937be199
|
@ -8,14 +8,7 @@
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"category": "Usability",
|
"category": "Usability",
|
||||||
"summary": "Allows to drag files into Odoo",
|
"summary": "Allows to drag files into Odoo",
|
||||||
"depends": [
|
"depends": ["web", "document"],
|
||||||
'web',
|
"data": ["views/templates.xml"],
|
||||||
'document'
|
"qweb": ["static/src/xml/widgets.xml"],
|
||||||
],
|
|
||||||
"data": [
|
|
||||||
'views/templates.xml',
|
|
||||||
],
|
|
||||||
"qweb": [
|
|
||||||
'static/src/xml/widgets.xml',
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,7 +130,7 @@ odoo.define('web_drop_target', function(require) {
|
||||||
);
|
);
|
||||||
var o_content_position = o_content.position();
|
var o_content_position = o_content.position();
|
||||||
this._drop_overlay.css({
|
this._drop_overlay.css({
|
||||||
'top': o_content_position.top,
|
'top': o_content_position.top,
|
||||||
'left': o_content_position.left,
|
'left': o_content_position.left,
|
||||||
'width': view_manager.width(),
|
'width': view_manager.width(),
|
||||||
'height': view_manager.height()
|
'height': view_manager.height()
|
||||||
|
@ -138,7 +138,7 @@ odoo.define('web_drop_target', function(require) {
|
||||||
o_content.append(this._drop_overlay);
|
o_content.append(this._drop_overlay);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_remove_overlay: function() {
|
_remove_overlay: function() {
|
||||||
if (this._drop_overlay) {
|
if (this._drop_overlay) {
|
||||||
this._drop_overlay.remove();
|
this._drop_overlay.remove();
|
||||||
|
|
|
@ -14,4 +14,3 @@
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue