diff mbox

[Branch,~linaro-validation/lava-dashboard/trunk] Rev 413: Fix for bug #1198190. Reviewed by stylesen.

Message ID 20130725142726.18651.93934.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Stevan Radakovic July 25, 2013, 2:27 p.m. UTC
Merge authors:
  Stevan Radaković (stevanr)
Related merge proposals:
  https://code.launchpad.net/~stevanr/lava-dashboard/fix-1198190/+merge/176942
  proposed by: Stevan Radaković (stevanr)
  review: Approve - Senthil Kumaran S (stylesen)
------------------------------------------------------------
revno: 413 [merge]
committer: Stevan Radakovic <stevan.radakovic@linaro.org>
branch nick: trunk
timestamp: Thu 2013-07-25 16:26:15 +0200
message:
  Fix for bug #1198190. Reviewed by stylesen.
modified:
  dashboard_app/static/dashboard_app/js/image-report.js


--
lp:lava-dashboard
https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk

You are subscribed to branch lp:lava-dashboard.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'dashboard_app/static/dashboard_app/js/image-report.js'
--- dashboard_app/static/dashboard_app/js/image-report.js	2013-07-03 14:48:22 +0000
+++ dashboard_app/static/dashboard_app/js/image-report.js	2013-07-25 13:57:18 +0000
@@ -104,9 +104,9 @@ 
     // Create column headlines.
     result_table_head = "<tr>";
     for (iter in column_data) {
-	build_number = column_data[iter]["number"].split('.')[0];
+	if (test_build_number(column_data, iter)) {
 
-	if (test_build_number(column_data, iter)) {
+	    build_number = column_data[iter]["number"].split('.')[0];
 	    if (!isNumeric(build_number)) {
 		build_number = format_date(build_number.split(' ')[0]);
 	    }
@@ -381,7 +381,7 @@ 
 function test_build_number(column_data, iter) {
     // Test if the build number/date is between specified number/date boundaries.
 
-    build_number = column_data[iter]["date"];
+    var build_number = column_data[iter]["date"];
 
     if (build_number <= $("#build_number_end").val() && build_number >= $("#build_number_start").val()) {
 	return true;