=== modified file 'dashboard_app/static/dashboard_app/js/image-report.js'
@@ -69,7 +69,7 @@
build_number_end = parseInt(build_number_end);
}
- if (build_number_start > build_number_end) {
+ if (build_number_start >= build_number_end) {
alert("End build number must be greater then the start build number.");
return false;
}
@@ -218,8 +218,8 @@
row = table_data[test];
for (iter in row) {
- build_number = column_data[iter]["number"].split('.')[0];
- if (build_number <= $("#build_number_end").val() && build_number >= $("#build_number_start").val()) {
+
+ if (test_build_number(column_data, iter)) {
if (row[iter]["cls"]) {
if ($('input:radio[name=graph_type]:checked').val() == "number") {
row_data.push([iter, row[iter]["passes"]]);
@@ -242,8 +242,7 @@
row_data = [];
row = table_data[test_run_names[0]];
for (iter in row) {
- build_number = column_data[iter]["number"].split('.')[0];
- if (build_number <= $("#build_number_end").val() && build_number >= $("#build_number_start").val()) {
+ if (test_build_number(column_data, iter)) {
row_data.push([iter, $("#target_goal").val()]);
}
}