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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
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 @@
...
@@ -35,8 +35,7 @@
state_dict
.
step
=
Math
.
pow
(
10
,
-
field_json
.
precision
);
state_dict
.
step
=
Math
.
pow
(
10
,
-
field_json
.
precision
);
value
=
value
.
toFixed
(
field_json
.
precision
);
value
=
value
.
toFixed
(
field_json
.
precision
);
}
else
{
}
else
{
// XXX did previous default step value make sense? 0.00000001
state_dict
.
step
=
0.00000001
;
state_dict
.
step
=
1.0
;
}
}
if
(
percents
)
{
if
(
percents
)
{
// ERP5 always devides the value by 10 if it is set to pe percentages
// ERP5 always devides the value by 10 if it is set to pe percentages
...
@@ -103,4 +102,4 @@
...
@@ -103,4 +102,4 @@
return
true
;
return
true
;
});
});
}(
window
,
rJS
,
Math
));
}(
window
,
rJS
,
Math
));
\ No newline at end of file
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