summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Laughlin <clark.laughlin@linaro.org>2015-08-12 13:34:48 -0400
committerClark Laughlin <clark.laughlin@linaro.org>2015-08-12 13:34:48 -0400
commit528e69c6e02a442424f984c54a9bae26bc115808 (patch)
tree80f7e9c58e618887958d60af833b131bb8fa475f
parent933b9910142fbab4d98f48ffec91a7ddd6dd78dc (diff)
web app: don't handle click for failed jobs
-rw-r--r--web-app/static/chart.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/web-app/static/chart.js b/web-app/static/chart.js
index 0cfde07..f41ec5e 100644
--- a/web-app/static/chart.js
+++ b/web-app/static/chart.js
@@ -74,7 +74,9 @@ function create_chart(div_name, branch, device, distro, version, max_results, sh
color: "rgba(13,131,172,.8)",
dataPoints: skippedDataPoints,
click: function(e) {
- f(e.dataPoint.label, e.dataSeries.name);
+ if (e.dataPoint.y > 0) {
+ f(e.dataPoint.label, e.dataSeries.name);
+ }
}
},
{
@@ -84,7 +86,9 @@ function create_chart(div_name, branch, device, distro, version, max_results, sh
color: "rgba(224,72,108,.8)",
dataPoints: failureDataPoints,
click: function(e) {
- f(e.dataPoint.label, e.dataSeries.name);
+ if (e.dataPoint.y > 0) {
+ f(e.dataPoint.label, e.dataSeries.name);
+ }
}
},
{
@@ -94,7 +98,9 @@ function create_chart(div_name, branch, device, distro, version, max_results, sh
color: "rgba(159,204,64,.8)",
dataPoints: passingDataPoints,
click: function(e) {
- f(e.dataPoint.label, e.dataSeries.name);
+ if (e.dataPoint.y > 0) {
+ f(e.dataPoint.label, e.dataSeries.name);
+ }
}
}
]