diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-21 19:50:10 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-21 19:50:10 -0400 |
commit | d8fb954f00847ebdb2bea3d5b76cd2df1dc44a33 (patch) | |
tree | e196dcf9f4a5d4ceea1823d65f87f6b2d4b4ae4a /assets/js/src/board.js | |
parent | ed5bf093abe6bcbb3fe4ea6b91bfa5a0fe897325 (diff) |
Add loading icon on board view
Diffstat (limited to 'assets/js/src/board.js')
-rw-r--r-- | assets/js/src/board.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/assets/js/src/board.js b/assets/js/src/board.js index 45dbd24a..291ef737 100644 --- a/assets/js/src/board.js +++ b/assets/js/src/board.js @@ -20,6 +20,8 @@ }); Mousetrap.bind("s", function() { + Kanboard.ShowLoadingIcon(); + $.ajax({ cache: false, url: $('.filter-display-mode:not([style="display: none;"]) a').attr('href'), @@ -31,6 +33,7 @@ board_load_events(); compactview_reload(); $('.filter-display-mode').toggle(); + Kanboard.HideLoadingIcon(); } }); }); @@ -128,7 +131,7 @@ }); }); - return '<i class="fa fa-refresh fa-spin fa-2x"></i>'; + return '<i class="fa fa-spinner fa-spin"></i>'; } }).on("mouseenter", function() { @@ -169,6 +172,7 @@ function board_save(taskId, columnId, position, swimlaneId) { board_unload_events(); + Kanboard.ShowLoadingIcon(); $.ajax({ cache: false, @@ -188,6 +192,7 @@ Kanboard.InitAfterAjax(); board_load_events(); compactview_reload(); + Kanboard.HideLoadingIcon(); } }); } |