diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-12-09 16:52:42 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-12 20:44:53 +0000 |
commit | bb9cf5f0f725cf3b73e06f6dd99734e9f23f0e5e (patch) | |
tree | 4acd8c3ab043da6586d612b7c7c91d9ec5ba7006 | |
parent | a0374e92a82e8c31964163f2eefa471bfe1eb0d4 (diff) | |
download | poky-bb9cf5f0f725cf3b73e06f6dd99734e9f23f0e5e.tar.gz |
bitbake: toaster: tablejs Add visual indicator for table data loading
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]
(Bitbake rev: 554c4992b33b77526b4b37c7484f1dd00032ddef)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/table.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js b/bitbake/lib/toaster/toastergui/static/js/table.js index aaa3e1f5cd..9db3902b55 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){ | |||
39 | ', .show-all-'+ctx.tableName); | 39 | ', .show-all-'+ctx.tableName); |
40 | 40 | ||
41 | function loadData(tableParams){ | 41 | function loadData(tableParams){ |
42 | table.trigger("table-loading"); | ||
43 | |||
42 | $.ajax({ | 44 | $.ajax({ |
43 | type: "GET", | 45 | type: "GET", |
44 | url: ctx.url, | 46 | url: ctx.url, |
@@ -835,4 +837,12 @@ function tableInit(ctx){ | |||
835 | 837 | ||
836 | $('#filter-modal-'+ctx.tableName).modal('hide'); | 838 | $('#filter-modal-'+ctx.tableName).modal('hide'); |
837 | }); | 839 | }); |
840 | |||
841 | table.on("table-loading", function(){ | ||
842 | table.css("opacity", 0.5); | ||
843 | }); | ||
844 | |||
845 | table.on("table-done", function(){ | ||
846 | table.css("opacity", 1); | ||
847 | }) | ||
838 | } | 848 | } |