Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Carlos Ramos Carreño
slapos.core
Commits
01674815
Commit
01674815
authored
May 29, 2023
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Use isInteger rather them division
parent
c844603b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_json_form_js.js
...web_page_module/rjs_gadget_erp5_page_slap_json_form_js.js
+4
-4
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_json_form_js.xml
...eb_page_module/rjs_gadget_erp5_page_slap_json_form_js.xml
+2
-2
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_json_form_js.js
View file @
01674815
/*jslint nomen: true, maxlen: 200, indent: 2, unparam: true*/
/*jslint nomen: true, maxlen: 200, indent: 2, unparam: true*/
/*global window, rJS, domsugar, Boolean, btoa, atob */
/*global window, rJS, domsugar, Boolean, btoa, atob
, Number
*/
(
function
(
window
,
rJS
,
domsugar
,
Boolean
,
btoa
,
atob
)
{
(
function
(
window
,
rJS
,
domsugar
,
Boolean
,
btoa
,
atob
,
Number
)
{
"
use strict
"
;
"
use strict
"
;
function
render_selection
(
json_field
,
default_value
,
is_required
,
editable
)
{
function
render_selection
(
json_field
,
default_value
,
is_required
,
editable
)
{
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
return
true
;
return
true
;
}
}
parsed_value
=
parseFloat
(
value
);
parsed_value
=
parseFloat
(
value
);
if
(
!
isNaN
(
parsed_value
)
&&
(
(
parsed_value
%
1
)
===
0
))
{
if
(
!
isNaN
(
parsed_value
)
&&
(
Number
.
isInteger
(
parsed_value
)
))
{
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
@@ -669,4 +669,4 @@
...
@@ -669,4 +669,4 @@
});
});
},
{
mutex
:
'
statechange
'
});
},
{
mutex
:
'
statechange
'
});
}(
window
,
rJS
,
domsugar
,
Boolean
,
btoa
,
atob
));
}(
window
,
rJS
,
domsugar
,
Boolean
,
btoa
,
atob
,
Number
));
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_json_form_js.xml
View file @
01674815
...
@@ -282,7 +282,7 @@
...
@@ -282,7 +282,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1008.4414
0.3254.1792
</string>
</value>
<value>
<string>
1008.4414
6.47863.60757
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -302,7 +302,7 @@
...
@@ -302,7 +302,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1685
133283.74
</float>
<float>
1685
377921.85
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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