mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
@@ -26,8 +26,8 @@ odoo.define('web_widget_digitized_signature.web_digital_sign', function(require)
|
||||
'decor-color': '#D1D0CE',
|
||||
'color': '#000',
|
||||
'background-color': '#fff',
|
||||
'height': '150',
|
||||
'width': '550'
|
||||
'height': this.attrs['height'] || '150',
|
||||
'width': this.attrs['width'] || '550'
|
||||
};
|
||||
this.empty_sign = [];
|
||||
},
|
||||
@@ -49,8 +49,8 @@ odoo.define('web_widget_digitized_signature.web_digital_sign', function(require)
|
||||
'decor-color': '#D1D0CE',
|
||||
'color': '#000',
|
||||
'background-color': '#fff',
|
||||
'height': '150',
|
||||
'width': '550',
|
||||
'height': this.attrs['height'] || '150',
|
||||
'width': this.attrs['width'] || '550',
|
||||
'clear': true
|
||||
};
|
||||
this.$(".signature").jSignature(sign_options);
|
||||
@@ -120,8 +120,8 @@ odoo.define('web_widget_digitized_signature.web_digital_sign', function(require)
|
||||
'decor-color': '#D1D0CE',
|
||||
'color': '#000',
|
||||
'background-color': '#fff',
|
||||
'height': '150',
|
||||
'width': '550'
|
||||
'height': this.attrs['height'] || '150',
|
||||
'width': this.attrs['width'] || '550'
|
||||
};
|
||||
this.$(".signature").jSignature("init", sign_options);
|
||||
}
|
||||
@@ -133,8 +133,8 @@ odoo.define('web_widget_digitized_signature.web_digital_sign', function(require)
|
||||
'decor-color': '#D1D0CE',
|
||||
'color': '#000',
|
||||
'background-color': '#fff',
|
||||
'height': '150',
|
||||
'width': '550'
|
||||
'height': this.attrs['height'] || '150',
|
||||
'width': this.attrs['width'] || '550'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,11 @@
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript"
|
||||
src="/web_widget_digitized_signature/static/src/js/digital_sign.js"/>
|
||||
<style type="text/css">
|
||||
.jSignature {
|
||||
border: 2px dotted gray !important;
|
||||
}
|
||||
</style>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user