Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
fdc408cb
Commit
fdc408cb
authored
Sep 19, 2017
by
Tomáš Peterka
Committed by
Tomáš Peterka
Sep 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[renderjs_ui] Return default mini-step to floatfield because it is necessary for field valication
parent
298979f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_floatfield_js.js
...lateItem/web_page_module/rjs_gadget_erp5_floatfield_js.js
+2
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_floatfield_js.js
View file @
fdc408cb
...
...
@@ -35,8 +35,7 @@
state_dict
.
step
=
Math
.
pow
(
10
,
-
field_json
.
precision
);
value
=
value
.
toFixed
(
field_json
.
precision
);
}
else
{
// XXX did previous default step value make sense? 0.00000001
state_dict
.
step
=
1.0
;
state_dict
.
step
=
0.00000001
;
}
if
(
percents
)
{
// ERP5 always devides the value by 10 if it is set to pe percentages
...
...
@@ -103,4 +102,4 @@
return
true
;
});
}(
window
,
rJS
,
Math
));
\ No newline at end of file
}(
window
,
rJS
,
Math
));
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment