Do not refresh the whole page when changing subtask status (work in progress)

This commit is contained in:
Frederic Guillot
2016-02-04 21:38:53 -05:00
parent 346151e103
commit 0f2b46dd6a
21 changed files with 243 additions and 254 deletions

View File

@@ -41,6 +41,19 @@ App.prototype.listen = function() {
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() {