Skip to content

Commit

Permalink
Merge pull request #17 from paulasmuth/adminui_singleMetricView
Browse files Browse the repository at this point in the history
enable open metric preview from metric list
  • Loading branch information
lauraschlimmer committed Nov 14, 2014
2 parents 6ee14bc + 7c8e4cc commit 332a90a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fnordmetric-webui/fnordmetric-webui-metriclist.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ FnordMetric.views.MetricList = function() {


function onRowClick() {
var raw_url = "metric_list?metric="+ this.firstChild.id;
var end = Date.now();
var start = end - 300000;
var raw_url =
"metric_list?metric="+ this.firstChild.id +
"&view=value&start_time=" + start +
"&end_time=" + end;

FnordMetric.WebUI.singleton.openUrl(raw_url, true);
};

Expand Down

0 comments on commit 332a90a

Please sign in to comment.