上传修改后的主题

This commit is contained in:
WEB许何哲\xuhez
2023-07-14 09:21:21 +08:00
parent 1c022711a1
commit a48c8b2baa
209 changed files with 18379 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
/** @odoo-module **/
import { Dialog } from "@web/core/dialog/dialog";
import { useEffect } from "@odoo/owl";
var { patch } = require("web.utils");
patch(Dialog.prototype, "spiffy_theme_backend.DialogJS", {
setup() {
this._super();
// MAKE ANY MODAL DRAGGABLE
useEffect(
(el) => {
if (el) {
let $modal = $(el);
$($modal).find('.modal-dialog').draggable({
handle: ".modal-header",
});
var width = $modal.find('.modal-content').width();
var height = $modal.find('.modal-content').height();
var backdrop = $modal.attr('data-backdrop');
if (backdrop){
$('body.modal-open').attr('data-backdrop', backdrop);
}
$modal.find('.modal-content').resizable({
minWidth: width,
minHeight: height,
});
}
},
() => [this.modalRef.el]
);
}
});