signalk-race-control 0.12.6 → 0.12.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/app.js +8 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signalk-race-control",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.7",
|
|
4
4
|
"description": "SignalK plugin and webapp for tracking elapsed and handicap-corrected (Time-on-Time) race time, with a per-boat editable TCF and boat names pulled from AIS when available.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Joachim Bakke <github@heiamoss.com>",
|
package/public/app.js
CHANGED
|
@@ -963,7 +963,7 @@
|
|
|
963
963
|
const ts =
|
|
964
964
|
raceState && raceState.multiDay
|
|
965
965
|
? dateTimeInputValueToTs(startTimeInput.value)
|
|
966
|
-
: timeInputValueToTs(startTimeInput.value, (raceState && raceState.startTime) || Date.now(), false);
|
|
966
|
+
: timeInputValueToTs(startTimeInput.value, (raceState && (raceState.startTime || raceState.scheduledStart)) || Date.now(), false);
|
|
967
967
|
setClassStartTime(cls.id, ts);
|
|
968
968
|
});
|
|
969
969
|
|
|
@@ -1008,10 +1008,13 @@
|
|
|
1008
1008
|
if (document.activeElement !== refs.startTimeInput) {
|
|
1009
1009
|
refs.startTimeInput.value = raceState.multiDay ? tsToDateTimeInputValue(cls.startTime) : tsToTimeInputValue(cls.startTime);
|
|
1010
1010
|
}
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1011
|
+
// Editable any time, including before the race starts — a time-only
|
|
1012
|
+
// entry then lands on the scheduled start's day (all classes start
|
|
1013
|
+
// the same day), and classes may share a start time. "Now" only
|
|
1014
|
+
// makes sense once the race is actually running.
|
|
1015
|
+
refs.startTimeInput.disabled = false;
|
|
1016
|
+
refs.nowBtn.disabled = !raceState.startTime;
|
|
1017
|
+
refs.clearBtn.disabled = !cls.startTime;
|
|
1015
1018
|
});
|
|
1016
1019
|
Array.from(classRowRefs.keys()).forEach((id) => {
|
|
1017
1020
|
if (!seenIds.has(id)) {
|