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
alecs_myu
erp5
Commits
4bd27f6c
Commit
4bd27f6c
authored
Dec 11, 2017
by
Tomáš Peterka
Committed by
Tomáš Peterka
Dec 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[rendejrs_ui] Floatfield formats well non-editable integers
Fixes /#/bug_module/20171208-5E8D43 /reviewed-on
!523
parent
1d49a0b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
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
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_floatfield_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_floatfield_js.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_floatfield_js.js
View file @
4bd27f6c
...
...
@@ -59,8 +59,8 @@
state_dict
.
text_content
=
state_dict
.
value
.
toString
();
if
(
state_dict
.
text_content
!==
""
&&
thousand_sep
!==
""
)
{
tmp
=
input_format_re
.
exec
(
state_dict
.
text_content
);
// tmp == [full-number, sign, integer-part, .decimal-part, ...]
state_dict
.
text_content
=
tmp
[
1
]
+
toTriplets
(
tmp
[
2
]).
join
(
thousand_sep
)
+
tmp
[
3
]
;
// tmp == [full-number, sign, integer-part, .decimal-part
(can be undefined because of permissive regexp)
, ...]
state_dict
.
text_content
=
tmp
[
1
]
+
toTriplets
(
tmp
[
2
]).
join
(
thousand_sep
)
+
(
tmp
[
3
]
||
""
)
;
tmp
=
undefined
;
}
}
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_floatfield_js.xml
View file @
4bd27f6c
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
963.
37747.27048.562
17
</string>
</value>
<value>
<string>
963.
40246.8021.320
17
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
151
1321647.29
</float>
<float>
151
2458225.4
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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