changeset 1a7b8019712f in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=1a7b8019712f
description:
Use JavaScript logical NOT when parsing time
The jQuery isEmptyObject is not true on empty string.
issue11189
review356351002
diffstat:
src/common.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 35a2da4a20d8 -r 1a7b8019712f src/common.js
--- a/src/common.js Tue Apr 19 13:24:43 2022 +0200
+++ b/src/common.js Tue Apr 19 18:06:14 2022 +0200
@@ -242,7 +242,7 @@
};
Sao.common.parse_time = function(format, value) {
- if (jQuery.isEmptyObject(value)) {
+ if (!value) {
return null;
}
var getNumber = function(pattern) {