You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2019/06/12 11:02:47 UTC
[kibble] branch master updated (c67a817 -> 124a90e)
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git.
from c67a817 regen JS
new f0fd234 We don't want negative timestamps, it breaks the UI
new 124a90e regen JS
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
ui/js/coffee/datepicker.coffee | 2 +-
ui/js/kibble.v1.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
[kibble] 02/02: regen JS
Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git
commit 124a90e11b94c57691a8f4692717ff8dc0a6efe5
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Jun 12 13:02:37 2019 +0200
regen JS
---
ui/js/kibble.v1.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/js/kibble.v1.js b/ui/js/kibble.v1.js
index cbadb54..85330e7 100644
--- a/ui/js/kibble.v1.js
+++ b/ui/js/kibble.v1.js
@@ -1694,7 +1694,7 @@ datepicker = function(widget) {
};
return $('#' + id).daterangepicker(datePickerOptions, function(start, end, label) {
console.log(start._d.getTime() / 1000);
- return updateTimeseriesWidgets([Math.floor(start._d.getTime() / 1000), Math.floor(end._d.getTime() / 1000)]);
+ return updateTimeseriesWidgets([Math.Max(0, Math.floor(start._d.getTime() / 1000)), Math.Max(3600, Math.floor(end._d.getTime() / 1000))]);
});
};
[kibble] 01/02: We don't want negative timestamps, it breaks the UI
Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git
commit f0fd2343518e98ea01a96517fa656c97a07e2c8e
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Jun 12 13:02:33 2019 +0200
We don't want negative timestamps, it breaks the UI
Typically, if you select 1970-1-1 it borks and shows -3600 as the
timestamp. let's avoid this.
---
ui/js/coffee/datepicker.coffee | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/js/coffee/datepicker.coffee b/ui/js/coffee/datepicker.coffee
index e7c9732..860237c 100644
--- a/ui/js/coffee/datepicker.coffee
+++ b/ui/js/coffee/datepicker.coffee
@@ -121,6 +121,6 @@ datepicker = (widget) ->
$('#' + id).daterangepicker(datePickerOptions, (start, end, label) ->
console.log(start._d.getTime()/1000)
- updateTimeseriesWidgets([Math.floor(start._d.getTime()/1000), Math.floor(end._d.getTime()/1000)])
+ updateTimeseriesWidgets([Math.Max(0, Math.floor(start._d.getTime()/1000)), Math.Max(3600, Math.floor(end._d.getTime()/1000))])
);