From patchwork Wed Aug 14 12:52:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stevan Radakovic X-Patchwork-Id: 19110 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7DBEA246B8 for ; Wed, 14 Aug 2013 12:52:26 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id dn14sf521508obc.10 for ; Wed, 14 Aug 2013 05:52:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:delivered-to:mime-version:to:from:subject :message-id:date:reply-to:sender:errors-to:precedence :x-original-sender:x-original-authentication-results:mailing-list :list-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=a6rSGii9BTG7rf5++s0+3dT+LwLigErLP43g278hCqk=; b=cV7vtj0UGmASq5DXbAQZstx1+0RVIpUiI9io1fcPBtqHItcex7bGgjFGxAeVEh+oBI N0i6GjxoWAYvB/Pix8GaA1QEEkrEtfHyArx0qSumd5YTA+9spBFUEXofXyKdA7pSc9k2 07yCPG+A9ipMcvCCGcPMEgsfPl/meFnRW4sceDXNlQIkgSF7ZNgTSb9bOBBfnJygNZJ4 DV3sKpXQb1JZVaf6z8K08oIl2Bl7VVG+CfcZqgh4oRNskcpL47OxUOcJRctJAvZ5WYNG yL0iRIVj5oOUGN3JOToThPikDX+aAYDk6snrZ7nY4/m21Auq7gWFRq2pH4LAjWJbuyz1 ZHuA== X-Received: by 10.43.49.197 with SMTP id vb5mr875714icb.19.1376484745574; Wed, 14 Aug 2013 05:52:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.105.3 with SMTP id gi3ls2874948qeb.81.gmail; Wed, 14 Aug 2013 05:52:25 -0700 (PDT) X-Received: by 10.52.165.239 with SMTP id zb15mr153005vdb.44.1376484745309; Wed, 14 Aug 2013 05:52:25 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id s3si810522vcm.76.2013.08.14.05.52.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 05:52:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id gd11so4969804vcb.5 for ; Wed, 14 Aug 2013 05:52:25 -0700 (PDT) X-Gm-Message-State: ALoCoQkfYDyR5EKvZzEGeisCrTEMYOFs8YTDTdBzhASNzIngBiCfpwyEfvgW1TlNv0bjDAUeMLRv X-Received: by 10.220.164.70 with SMTP id d6mr9365853vcy.19.1376484745218; Wed, 14 Aug 2013 05:52:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp211061vcz; Wed, 14 Aug 2013 05:52:24 -0700 (PDT) X-Received: by 10.14.241.74 with SMTP id f50mr14871092eer.29.1376484744250; Wed, 14 Aug 2013 05:52:24 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id t9si29448740eeh.63.2013.08.14.05.52.23 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 14 Aug 2013 05:52:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1V9aYp-0000Lw-JW for ; Wed, 14 Aug 2013 12:52:23 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 85B92E0616 for ; Wed, 14 Aug 2013 12:52:23 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dashboard X-Launchpad-Branch: ~linaro-validation/lava-dashboard/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 414 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dashboard/trunk] Rev 414: Fix for bug #1198195. Reviewed by stylesen. Message-Id: <20130814125223.24147.8103.launchpad@ackee.canonical.com> Date: Wed, 14 Aug 2013 12:52:23 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16723"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: e975deabc1e569330db012dfcc10864ebb76b8b4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 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 === 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")); }