Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 7C53AE007E8; Mon, 23 May 2016 13:44:30 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FSL_HELO_HOME,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [74.125.82.52 listed in list.dnswl.org] * 1.0 FSL_HELO_HOME FSL_HELO_HOME * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 47FF9E0077E for ; Mon, 23 May 2016 13:44:26 -0700 (PDT) Received: by mail-wm0-f52.google.com with SMTP id z87so62747604wmh.0 for ; Mon, 23 May 2016 13:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=F8sIBXmDd2tjPDS8rt2dHfCcd1NcnahoU7GhSwAR1vI=; b=HIIwTVQ3TryaGlpBOVQwKnBhzkMd4NPwjesRaSsJqCpANx0AyWtqVH3dERCSDrbXsu XhWsgc+WhjhKtnE6mDXCXNmv8cOTy8bxew+FF3z+lJnVcdYyvYknoovbaiqK5tN1/n29 4RHY8Dr/HadTGBIpz/z26PiGOpcVEEyz6D7v1WPHcMwxDSO4yklMouOWHbOf0pX5aywT vHeDwsIOgGRY/hpfZuasgxb3hfvY1Qo3K2ZH+SWQgCpYXlW8fUsVGhTOmvk5sbFFwUu4 ikZtAE6uBwmYzjzWsHURbcOD7niLwMH/Gugu8if1DQYR5qtpdUOUz47tN2spb+GULRe9 UVEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=F8sIBXmDd2tjPDS8rt2dHfCcd1NcnahoU7GhSwAR1vI=; b=D0n757HEpyuE2aX6koI839P2NC1iKE74PSAcvv7DksUSx5n8WUK3wKXzlviIsRib7u et4lWRStF2I4mAsM9zs5BwMmGIqqeiItDGImZUpMBI3sTupuH05rVKW0RuCFss7qXaKF tbaPT+Gq7NDtmxYSmgwK2YIGKClK52udDuD5kt8x4DQuoJrxjsPY4lW2Z1UFOeL5dZKz qucJlHnC53SJK36GFaNoHXHpFH6UFHpn/pGjaL1CHTi1Rln2B5vT/KFGF4zkuT0v86Ui cmUryJuXZnVSNv8VNKOAYvd3f2j/wCMLcFSQFwJ0pF+ljjhrppIQc/5r8Jk21Pv1pFQ+ 7T7w== X-Gm-Message-State: ALyK8tIBilOlZL6/vvGqXGZf8NARZE9AA9tVHYN1Rha9VTQoMNa7fJw4366COf0WUAbe/6C0 X-Received: by 10.194.11.36 with SMTP id n4mr763488wjb.10.1464036266288; Mon, 23 May 2016 13:44:26 -0700 (PDT) Received: from orion.home (host31-48-249-108.range31-48.btcentralplus.com. [31.48.249.108]) by smtp.gmail.com with ESMTPSA id h14sm12035619wme.1.2016.05.23.13.44.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 May 2016 13:44:25 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Mon, 23 May 2016 21:44:16 +0100 Message-Id: <1464036257-23434-7-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1464036257-23434-1-git-send-email-michael.g.wood@intel.com> References: <1464036257-23434-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 6/7] toaster: table.js Add the ability to highlight a particular row X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2016 20:44:30 -0000 As in the old build tables it's useful to jump and highlight a particular row in the table using the #hash in the URL. Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/static/js/table.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js b/bitbake/lib/toaster/toastergui/static/js/table.js index 7f76f55..7f9c44f 100644 --- a/bitbake/lib/toaster/toastergui/static/js/table.js +++ b/bitbake/lib/toaster/toastergui/static/js/table.js @@ -162,6 +162,15 @@ function tableInit(ctx){ table.css("padding-bottom", 0); tableContainer.css("visibility", "visible"); + /* If we have a hash in the url try and highlight that item in the table */ + if (window.location.hash){ + var highlight = $("table a[name="+window.location.hash.replace('#','')); + if (highlight.length > 0){ + highlight.parents("tr").addClass('highlight'); + window.scroll(0, highlight.position().top - 50); + } + } + table.trigger("table-done", [tableData.total, tableParams]); } -- 2.7.4