mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix drag
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'odoo 16,15 Customize OEM(Boost, Data reset)',
|
'name': 'odoo 16,15 Customize OEM(Boost, Data reset)',
|
||||||
'version': '15.23.02.17',
|
'version': '15.23.02.22',
|
||||||
'author': 'Sunpop.cn',
|
'author': 'Sunpop.cn',
|
||||||
'category': 'Productivity',
|
'category': 'Productivity',
|
||||||
'website': 'https://www.sunpop.cn',
|
'website': 'https://www.sunpop.cn',
|
||||||
|
|||||||
@@ -9,15 +9,16 @@ patch(Dialog.prototype, "app_odoo_customize.Dialog", {
|
|||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
const app_system_name = session.app_system_name || "odooApp";
|
const app_system_name = session.app_system_name || "odooApp";
|
||||||
this.title = app_system_name;
|
this.title = app_system_name;
|
||||||
|
owl.onMounted(() => {
|
||||||
|
this.setDrag();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
setDrag() {
|
||||||
|
var $dl = $('#' + this.id + ' .modal-dialog .modal-content');
|
||||||
|
if ($dl)
|
||||||
|
$dl.draggable({
|
||||||
|
handle: ".modal-header"
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// mounted() {
|
|
||||||
// //todo: 没用,不能用 jq的处理方式
|
|
||||||
// this._super.apply(this, arguments);
|
|
||||||
// var $dl = this.__owl__.vnode ? this.__owl__.vnode.elm : null;
|
|
||||||
// var $ml = $dl.children[0].children[0].children[0];
|
|
||||||
// $ml.draggable({
|
|
||||||
// handle: ".modal-header"
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user