Add current values when moving/duplicate a task to another project and add a loading icon

This commit is contained in:
Frederic Guillot
2015-07-20 21:10:09 -04:00
parent 32aab02549
commit 8cd1e6f4c1
5 changed files with 51 additions and 34 deletions

View File

@@ -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