mirror of https://github.com/OCA/web.git
[IMP] pre-commit run after update
Includes some manual fixes to silent ESLint warnings.pull/1933/head
parent
7a62fdfbfd
commit
6e2aeab262
|
@ -9,12 +9,12 @@ odoo.define("web_decimal_numpad_dot.FieldFloat", function (require) {
|
|||
var NumpadDotReplaceMixin = {
|
||||
l10n_decimal_point: function() {
|
||||
return this.formatType === "float_time"
|
||||
? ":" : translation._t.database.parameters.decimal_point;
|
||||
? ":"
|
||||
: translation._t.database.parameters.decimal_point;
|
||||
},
|
||||
|
||||
_replaceAt: function(cur_val, from, to, replacement) {
|
||||
return cur_val.substring(0, from) + replacement +
|
||||
cur_val.substring(to);
|
||||
return cur_val.substring(0, from) + replacement + cur_val.substring(to);
|
||||
},
|
||||
|
||||
_onKeydown: function(event) {
|
||||
|
|
|
@ -1,10 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<template id="assets_backend"
|
||||
name="numpad_dot assets" inherit_id="web.assets_backend">
|
||||
<template
|
||||
id="assets_backend"
|
||||
name="numpad_dot assets"
|
||||
inherit_id="web.assets_backend"
|
||||
>
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/web_decimal_numpad_dot/static/src/js/numpad_dot.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/web_decimal_numpad_dot/static/src/js/numpad_dot.js"
|
||||
/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue