Skip to content

Commit 5007ebd

Browse files
author
Dave Conway-Jones
committed
Fix text input datetime mode to accept input
to close #757
1 parent bc97c4c commit 5007ebd

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### 3.1.7: Maintenance Release
2+
3+
**Fixes**
4+
5+
- Fix text-input datetime mode to accept setting time input. Issue #757
6+
17
### 3.1.6: Maintenance Release
28

39
**Fixes**

dist/dashboard.appcache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Time: Sat Feb 12 2022 17:50:27 GMT+0000 (Greenwich Mean Time)
2+
# Time: Wed Feb 23 2022 10:54:34 GMT+0000 (Greenwich Mean Time)
33

44
CACHE:
55
i18n.js
@@ -26,4 +26,4 @@ loading.html
2626
NETWORK:
2727
*
2828

29-
# hash: ea8c133520f59631ae0ff407e727fa16125c3b587ecd95a03f83321d89c8e8a3
29+
# hash: f51ee7764d0106af647b6e0933a2e5890f5315276876c6fa65761112cec151d1

dist/js/app.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodes/ui_text_input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = function(RED) {
3333
sendOnBlur: config.sendOnBlur
3434
},
3535
beforeSend: function (msg) {
36-
if (config.mode === "time") {
36+
if (config.mode.indexOf("time") != -1) {
3737
if (typeof msg.payload === "string") {
3838
msg.payload = Date.parse(msg.payload);
3939
}

src/components/ui-component/ui-component-ctrl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ angular.module('ui').controller('uiComponentController', ['$scope', 'UiEvents',
223223

224224
case 'text-input':
225225
case 'text-input-CR': {
226-
if (me.item.mode == "time") {
226+
if (me.item.mode.indexOf("time") != -1) {
227227
me.processInput = function (msg) {
228228
var dtmval = new Date(msg.value);
229229
// initial check for millisecond timestamp

0 commit comments

Comments
 (0)