mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 19:04:41 -04:00
Working on task kanban
This commit is contained in:
parent
1ca6808ab2
commit
b3a2da2732
@ -389,6 +389,32 @@
|
||||
}
|
||||
|
||||
self.saveEditTask = function() {
|
||||
var description = (self.description() || '').trim();
|
||||
if (! description) {
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
dataType: 'json',
|
||||
type: 'put',
|
||||
data: self.toData(),
|
||||
url: '{{ url('/tasks') }}/' + self.public_id(),
|
||||
accepts: {
|
||||
json: 'application/json'
|
||||
},
|
||||
success: function(response) {
|
||||
console.log('success');
|
||||
console.log(response);
|
||||
},
|
||||
error: function(error) {
|
||||
console.log('error');
|
||||
console.log(error);
|
||||
},
|
||||
}).always(function() {
|
||||
setTimeout(function() {
|
||||
model.is_sending_request(false);
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
self.endTaskEdit();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user