Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
fix useGroup exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Benjamin Ries committed Jun 7, 2023
1 parent 591cdb5 commit efc5fa4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions EcosApp/libs/w2ui-1.5.rc1/w2ui-1.5.rc1.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,11 @@ var w2utils = (function ($) {
return (Math.floor(sizeStr / Math.pow(1024, i) * 10) / 10).toFixed(i === 0 ? 0 : 1) + ' ' + (sizes[i] || '??');
}

function formatNumber (val, fraction, useGrouping) {
function formatNumber (val, fraction) {
if (val == null || val === '' || typeof val == 'object') return '';
var options = {
minimumFractionDigits : fraction,
maximumFractionDigits : fraction,
useGrouping : useGrouping
maximumFractionDigits : fraction
};
if (fraction == null || fraction < 0) {
options.minimumFractionDigits = 0;
Expand Down
4 changes: 2 additions & 2 deletions EcosApp/railessentials.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions EcosApp/src/lightAndPower.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ class LightAndPower {
}
catch (e) { }
});

$('#powerChkIn1DelaySecs').w2field('int', {
autoFormat: true, min: 0, max: 30, silent: false
});
Expand Down

0 comments on commit efc5fa4

Please sign in to comment.