Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E9F2BE00BC0; Thu, 24 Nov 2016 07:35:59 -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: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.125.83.50 listed in list.dnswl.org] * -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-pg0-f50.google.com (mail-pg0-f50.google.com [74.125.83.50]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D7191E00BAD for ; Thu, 24 Nov 2016 07:35:57 -0800 (PST) Received: by mail-pg0-f50.google.com with SMTP id x23so19706104pgx.1 for ; Thu, 24 Nov 2016 07:35:57 -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=fGFekGAQQj1zbCg1eGDTLHaryU1Oi6IS1/69285/XytjE2XBgLBrWg5/TTVFXZsL6t l2Z80cnDFY7f3qdMfaZknN7XaHg5uLvGwEk+qRq5rIGLIl3FqFpkqAg3ooy1xQbK/3Wk Kk1+VMi5GkpFMiq8B+ex85EtDTLFYn0xqz9BqjM05FFNEo5Ujz3W4Lp31gXZqWRBW8nz Ib9nkansQ4LmfObp2gmegIlrC85kqO9jMiRoxrhi5FRIvYl8JVqriQ+fh4TMUmxhuAup lIN7Vw5/vQETQFok7PCOCBPLQ2nB5mlMzM/uN/CFFGYua/Z7H1Dv2yzSKNYXTgochJJW Zqfw== 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=e5nceDQVByhJdhY5zrKQaU78EBrg0hLvIDa8Mg/YEs68gs1okh1ByTN+dKdk45ooI5 VtCKF3YwW65iodUbHbDGu4WnfbPa3M7Ifv4wW6uFX4wmBk4vjrCsTOG0NnD/aodDaXS3 +De6n48k7nC5ewQbzJKwaMQzSBnw6oruMDhrJiimt3YPdGmzSjtAVSIsIljg7sjpjvJc N0OoZau9PvOOh/um9lwqS5yQ1DzdRm30mCYth/fWfOyKtMI4LWSNXGQywuEKoFzYzY0E nt+1j0NXVeY3Fc7r0lfo6FE2BJuBxo21RL//8DwZW1yYK8CduDG1fNWLQst4Hd+MRsUD 4FPg== X-Gm-Message-State: AKaTC01FB52BjB9j6+cOGfFGzCCwifuNiQGEh6RXey/FqW0S7/3RFrnQcNMU7z2u8991zIUs X-Received: by 10.84.218.5 with SMTP id q5mr6785523pli.136.1480001757356; Thu, 24 Nov 2016 07:35:57 -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 r88sm61288080pfe.93.2016.11.24.07.35.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Nov 2016 07:35:56 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 24 Nov 2016 15:35:51 +0000 Message-Id: <1480001751-10899-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH] toaster: tablejs Add visual indicate to 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:36:00 -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