Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 61E39E00BC0; Thu, 24 Nov 2016 07:38:18 -0800 (PST) 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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -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 * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.125.83.42 listed in list.dnswl.org] Received: from mail-pg0-f42.google.com (mail-pg0-f42.google.com [74.125.83.42]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3F2D2E00BAD for ; Thu, 24 Nov 2016 07:38:14 -0800 (PST) Received: by mail-pg0-f42.google.com with SMTP id f188so19566010pgc.3 for ; Thu, 24 Nov 2016 07:38:14 -0800 (PST) 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; bh=0bM2ZTQfed6xWYzpHiYOCyJSjyx6leF7dusMr4kjqK4=; b=Urir7xHWPiLAVhznHwlV1PY5dz6umQPazlJIAdIR/h0ayNY7lliXBUeKgcvbQegh0h fzwtjd9PbX7KhFiIJqZFtqTNbNYPtUTjO3kXjHC6D9drlL79uIfU+qVlWOGdzaObUHS8 4OnEGLuXrP0A4Gtziom62S1VA9vQBR/L3wP4kqWhGdwoOnCj6wbQAHyb6TIIpHDDsQbY KUebWE+wzOWs/X3Ke98H63Dp/U29KiQ7KXnO+/7Hb6lBhRgtS3CK7akrifB+zcg5zgue XzjvM1yOx+Snb+HiEIUaroxWuovrHFf5/1+B5G/+mzCnnPO1HNHvixbGLextXILpmGn6 7olg== 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; bh=0bM2ZTQfed6xWYzpHiYOCyJSjyx6leF7dusMr4kjqK4=; b=QWNvtn75UAqlemIAKBz0qgQoFE6G21he/zlOzvFk8F/scnP7TtWMzNhjk21C6IZ7EA dXzqapIOz8Qwa5urQ0o/oA5KVWcaYE3oGrhT1WFw6dKLfxA2n9L+mynkgd4aB9OYlr7X ZtrPNXB/ctxViUTNQ+3rxIxbr8WYPMnBpoG8bin+cTw4z+xioYafuJFcAVoGNYVNj9KP 4Y0tEa5vXQOjyySl+9kuj0POJk0LKnSDJd1rUeml+Gr+tBl3nEpZXo3ifNRTFrrUeUBS I1/iHjl6var8e8WwAbmjWCvEjK0KU2UeF4iFdF7MZJORU4SSs1T99wj159fQZZI5oojR 1nnQ== X-Gm-Message-State: AKaTC0133JzVLJUnC/KDRCvEQ8k7LmJOsrSfidTa6i1mAjTAi++Xj5/oFkkSeiCr9TdXpgZ4 X-Received: by 10.84.148.203 with SMTP id y11mr6692315plg.29.1480001893665; Thu, 24 Nov 2016 07:38:13 -0800 (PST) Received: from orion.ger.corp.intel.com (fmdmzpr01-ext.fm.intel.com. [192.55.54.36]) by smtp.gmail.com with ESMTPSA id g22sm43381919pgn.20.2016.11.24.07.38.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Nov 2016 07:38:13 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 24 Nov 2016 15:38:05 +0000 Message-Id: <1480001885-11288-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH v2] toaster: tablejs Add visual indicator for table data loading 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: Thu, 24 Nov 2016 15:38:18 -0000 Add a visual indicator when the data is changing in the table, for instance if it's being re-ordered, searched or paginated. [YOCTO #10104] Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/static/js/table.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js b/bitbake/lib/toaster/toastergui/static/js/table.js index 176ce57..1bbc8d1 100644 --- a/bitbake/lib/toaster/toastergui/static/js/table.js +++ b/bitbake/lib/toaster/toastergui/static/js/table.js @@ -39,6 +39,8 @@ function tableInit(ctx){ ', .show-all-'+ctx.tableName); function loadData(tableParams){ + table.trigger("table-loading"); + $.ajax({ type: "GET", url: ctx.url, @@ -835,4 +837,12 @@ function tableInit(ctx){ $('#filter-modal-'+ctx.tableName).modal('hide'); }); + + table.on("table-loading", function(){ + table.css("opacity", 0.5); + }); + + table.on("table-done", function(){ + table.css("opacity", 1); + }) } -- 2.7.4