diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-20 21:10:09 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-20 21:10:09 -0400 |
commit | 8cd1e6f4c1642b2cad8fc29704c042d6e4e527b1 (patch) | |
tree | 49143224b6ae741f2c25e78750c682627da06927 /assets/js/src | |
parent | 32aab02549f45b71b494cf966126cf715d3f75e4 (diff) |
Add current values when moving/duplicate a task to another project and add a loading icon
Diffstat (limited to 'assets/js/src')
-rw-r--r-- | assets/js/src/base.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/assets/js/src/base.js b/assets/js/src/base.js index 6bd8a144..8a0e04bd 100644 --- a/assets/js/src/base.js +++ b/assets/js/src/base.js @@ -273,8 +273,14 @@ var Kanboard = (function() { $(".sidebar-expand").hide(); }); + // Reload page when a destination project is changed + var reloading_project = false; $("select.task-reload-project-destination").change(function() { - window.location = $(this).data("redirect").replace(/PROJECT_ID/g, $(this).val()); + if (! reloading_project) { + $(".loading-icon").show(); + reloading_project = true; + window.location = $(this).data("redirect").replace(/PROJECT_ID/g, $(this).val()); + } }); // Datepicker translation |