Fix regression: unable to change project in "task move/duplicate to another project"

This commit is contained in:
Frederic Guillot
2016-02-23 21:57:54 -05:00
parent cfbf6bc9c7
commit a6540bc604
4 changed files with 34 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ function App() {
this.dropdown = new Dropdown();
this.tooltip = new Tooltip(this);
this.popover = new Popover(this);
this.task = new Task();
this.task = new Task(this);
this.project = new Project();
this.subtask = new Subtask(this);
this.column = new Column(this);
@@ -19,16 +19,6 @@ function App() {
$(".alert-fade-out").delay(4000).fadeOut(800, function() {
$(this).remove();
});
// Reload page when a destination project is changed
var reloading_project = false;
$("select.task-reload-project-destination").change(function() {
if (! reloading_project) {
$(".loading-icon").show();
reloading_project = true;
window.location = $(this).data("redirect").replace(/PROJECT_ID/g, $(this).val());
}
});
}
App.prototype.listen = function() {