mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update common
This commit is contained in:
17
app_odoo_customize/static/src/js/dialog.js
Normal file
17
app_odoo_customize/static/src/js/dialog.js
Normal file
@@ -0,0 +1,17 @@
|
||||
odoo.define('app_odoo_customize.dialog', function (require) {
|
||||
'use strict';
|
||||
|
||||
var Dialog = require('web.Dialog');
|
||||
|
||||
Dialog.include({
|
||||
open: function () {
|
||||
this._super.apply(this, arguments);
|
||||
this._opened.then(function(){
|
||||
$(".modal-content").draggable({
|
||||
handle: ".modal-header"
|
||||
});
|
||||
});
|
||||
return this;
|
||||
},
|
||||
});
|
||||
});
|
||||
7
app_odoo_customize/static/src/scss/dialog.scss
Normal file
7
app_odoo_customize/static/src/scss/dialog.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
.modal {
|
||||
.modal-content {
|
||||
.modal-header.ui-draggable-handle {
|
||||
cursor: move;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user