summaryrefslogtreecommitdiff
path: root/assets/js/src/board.js
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-21 19:50:10 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-21 19:50:10 -0400
commitd8fb954f00847ebdb2bea3d5b76cd2df1dc44a33 (patch)
treee196dcf9f4a5d4ceea1823d65f87f6b2d4b4ae4a /assets/js/src/board.js
parented5bf093abe6bcbb3fe4ea6b91bfa5a0fe897325 (diff)
Add loading icon on board view
Diffstat (limited to 'assets/js/src/board.js')
-rw-r--r--assets/js/src/board.js7
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();
}
});
}