Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 5E87CE00D44; Fri, 9 Dec 2016 08:29:54 -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.82.48 listed in list.dnswl.org] Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B0479E00D12 for ; Fri, 9 Dec 2016 08:29:50 -0800 (PST) Received: by mail-wm0-f48.google.com with SMTP id f82so31996885wmf.1 for ; Fri, 09 Dec 2016 08:29:50 -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:in-reply-to:references; bh=0bM2ZTQfed6xWYzpHiYOCyJSjyx6leF7dusMr4kjqK4=; b=LQJtLXeZrGaN0LjAQe3Lv1xkNi5HePxcwOXKTssXTdBTYTO6ew1uvvRz2ed8frUb58 nJfoKgy5wE8Mp6NJE8EuE11REKQph3wO79Lj2RxRhzFJtHAFG3ERZe8AtdGXXG7IzpDJ MixP69IK8iUMrxCXphEE2nXg3SwLh2JWAxAJs19HlRWHZf86m4V4wZNrG+v9KlGWcvmZ fyf59BKnjdb0+h2npoRiwMHtk+QIElUsNzSCQcmItiaPGbCTQN2C8rRWwPmjh9oXVKlR lGyo8843DMYQBGERiAEKpKX4DQZOYZ5UdnTrYbtktMUZ7NfiDkS4iNiTt9KF2QVviQFp Yk2A== 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=0bM2ZTQfed6xWYzpHiYOCyJSjyx6leF7dusMr4kjqK4=; b=aD+MmHXYak/Pu9+Kt/atmwV9MdIjCoR/LcRVhytmwwCD+p3pEu26oQboH2k9K6EtUo YVyM6j20FkP82CskezHP+8XvlAXiS4uHdrOdwg0DNrT1HEpo6qtY8y+C1tIwveNNUeka f6J2H/UVLH5ukWuFiUeIuzxlzgH/WhyR4AcTm6+pU4oTrcCwgfKfQwAe9SXe20RsYpRi Uadf4zKip/LsrkmcDFj7ZWem3JbjrhY7l4ZlEXQTPJywQH89yxjHx0Jls0Ph6jSXDyH3 n+9nrz224+EQuiKTYL34qKedUBoBICf7dH522MKlbsLzBxHW+RvkRIDJy7gaX7VxWC5a oNXw== X-Gm-Message-State: AKaTC00kBXt4VlZxPXk+JW/smJA/S/C2Yxay25I9uKO/pAwjsv/ylnma3sfhdK6qsTlwAx8A X-Received: by 10.28.225.11 with SMTP id y11mr7369678wmg.93.1481300989403; Fri, 09 Dec 2016 08:29:49 -0800 (PST) Received: from localhost.localdomain ([192.198.151.62]) by smtp.gmail.com with ESMTPSA id x5sm43051348wje.36.2016.12.09.08.29.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Dec 2016 08:29:48 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 9 Dec 2016 16:29:32 +0000 Message-Id: <1481300985-7356-2-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481300985-7356-1-git-send-email-michael.g.wood@intel.com> References: <1481300985-7356-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 01/14] 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: Fri, 09 Dec 2016 16:29:54 -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