summaryrefslogtreecommitdiff
path: root/assets/js/src/App.js
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-05 18:30:16 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-05 18:30:16 -0500
commit4e07ad6555bee33c6e48992f8f8e56706aff7c58 (patch)
tree1921c1c080133a6c9bd67119b282d3dbd313e4b2 /assets/js/src/App.js
parent9c15658089ec5bd3914b91c7a59fdb522e837b70 (diff)
Improve subtask toggle status and timer
Diffstat (limited to 'assets/js/src/App.js')
-rw-r--r--assets/js/src/App.js15
1 files changed, 2 insertions, 13 deletions
diff --git a/assets/js/src/App.js b/assets/js/src/App.js
index cd5df66e..d44d9f81 100644
--- a/assets/js/src/App.js
+++ b/assets/js/src/App.js
@@ -8,6 +8,7 @@ function App() {
this.popover = new Popover(this);
this.task = new Task();
this.project = new Project();
+ this.subtask = new Subtask();
this.keyboardShortcuts();
this.chosen();
this.poll();
@@ -37,23 +38,11 @@ App.prototype.listen = function() {
this.search.listen();
this.task.listen();
this.swimlane.listen();
+ this.subtask.listen();
this.search.focus();
this.autoComplete();
this.datePicker();
this.focus();
-
- $(document).on("click", ".ajax-replace", function(e) {
- e.preventDefault();
- var el = $(this);
-
- $.ajax({
- cache: false,
- url: el.attr("href"),
- success: function(data) {
- el.replaceWith(data);
- }
- });
- });
};
App.prototype.refresh = function() {