diff options
Diffstat (limited to 'assets/js/src/App.js')
-rw-r--r-- | assets/js/src/App.js | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/assets/js/src/App.js b/assets/js/src/App.js index 976b4554..56efd706 100644 --- a/assets/js/src/App.js +++ b/assets/js/src/App.js @@ -1,44 +1,38 @@ function App() { this.board = new Board(this); this.markdown = new Markdown(); - this.sidebar = new Sidebar(); this.search = new Search(this); - this.swimlane = new Swimlane(); + this.swimlane = new Swimlane(this); 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); + this.file = new FileUpload(this); this.keyboardShortcuts(); this.chosen(); this.poll(); // Alert box fadeout - $(".alert-fade-out").delay(4000).fadeOut(800, function() { + $(".alert-fade-out").delay(5000).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() { this.project.listen(); this.popover.listen(); this.markdown.listen(); - this.sidebar.listen(); this.tooltip.listen(); this.dropdown.listen(); this.search.listen(); this.task.listen(); this.swimlane.listen(); + this.subtask.listen(); + this.column.listen(); + this.file.listen(); this.search.focus(); this.autoComplete(); this.datePicker(); |