Updated devices Graphs links to use non-static time references

This commit is contained in:
laf
2015-10-26 19:49:30 +00:00
parent 15753557c4
commit 12cd422702
2 changed files with 3 additions and 3 deletions

View File

@@ -99,8 +99,8 @@ $(document).ready(function() {
});
function submitCustomRange(frmdata) {
var reto = /to=([0-9])+/g;
var refrom = /from=([0-9])+/g;
var reto = /to=([0-9a-zA-Z\-])+/g;
var refrom = /from=([0-9a-zA-Z\-])+/g;
var tsto = moment(frmdata.dtpickerto.value).unix();
var tsfrom = moment(frmdata.dtpickerfrom.value).unix();
frmdata.selfaction.value = frmdata.selfaction.value.replace(reto, 'to=' + tsto);