This commit is contained in:
ivan deng
2023-02-22 17:46:33 +08:00
parent ec5fdc4123
commit 051bf3211b
2 changed files with 11 additions and 10 deletions

View File

@@ -23,7 +23,7 @@
{
'name': 'odoo 16,15 Customize OEM(Boost, Data reset)',
'version': '15.23.02.17',
'version': '15.23.02.22',
'author': 'Sunpop.cn',
'category': 'Productivity',
'website': 'https://www.sunpop.cn',

View File

@@ -9,15 +9,16 @@ patch(Dialog.prototype, "app_odoo_customize.Dialog", {
this._super.apply(this, arguments);
const app_system_name = session.app_system_name || "odooApp";
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"
// });
// },
});