diff mbox

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

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

Commit Message

Stevan Radakovic Aug. 14, 2013, 12:52 p.m. UTC
Merge authors:
  Stevan Radaković (stevanr)
Related merge proposals:
  https://code.launchpad.net/~stevanr/lava-dashboard/fix-1198195/+merge/180119
  proposed by: Stevan Radaković (stevanr)
  review: Approve - Senthil Kumaran S (stylesen)
------------------------------------------------------------
revno: 414 [merge]
committer: Stevan Radakovic <stevan.radakovic@linaro.org>
branch nick: trunk
timestamp: Wed 2013-08-14 14:51:37 +0200
message:
  Fix for bug #1198195. 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-25 13:57:18 +0000
+++ dashboard_app/static/dashboard_app/js/image-report.js	2013-08-14 12:25:50 +0000
@@ -43,6 +43,12 @@ 
 	    text: build_number
 	}));
     }
+    start_number_options = $("#build_number_start option").size();
+    // Show last 15 options.
+    if (start_number_options > 15) {
+        start_number_options -= 15;
+        $("#build_number_start option:eq(" + start_number_options + ")").attr("selected", true);
+    }
     $("#build_number_end option:last").attr("selected", true);
 
     for (iter in test_run_names) {
@@ -202,7 +208,6 @@ 
 
     $.jStorage.set(prefix + "_target_goal", $("#target_goal").val().trim());
     $.jStorage.set(prefix + "_build_number_start", $("#build_number_start").val());
-    $.jStorage.set(prefix + "_build_number_end", $("#build_number_end").val());
     $.jStorage.set(prefix + "_test_select", $("#test_select").val());
     $.jStorage.set(prefix + "_toggle_graph", $("#toggle_graph").attr("checked"));
     $.jStorage.set(prefix + "_graph_type", $('input:radio[name=graph_type]:checked').val());
@@ -225,9 +230,6 @@ 
     if ($.jStorage.get(prefix + "_build_number_start")) {
 	$("#build_number_start").val($.jStorage.get(prefix + "_build_number_start"));
     }
-    if ($.jStorage.get(prefix + "_build_number_end")) {
-	$("#build_number_end").val($.jStorage.get(prefix + "_build_number_end"));
-    }
     if ($.jStorage.get(prefix + "_test_select")) {
 	$("#test_select").val($.jStorage.get(prefix + "_test_select"));
     }