aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/static/js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/toaster/toastergui/static/js')
-rw-r--r--lib/toaster/toastergui/static/js/table.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/static/js/table.js b/lib/toaster/toastergui/static/js/table.js
index aaa3e1f5c..9db3902b5 100644
--- a/lib/toaster/toastergui/static/js/table.js
+++ b/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);
+ })
}