1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

Working on time tracker

This commit is contained in:
Hillel Coren 2017-09-28 13:02:19 +03:00
parent ac44c1ebff
commit 954a7a8fd4

View File

@ -225,11 +225,7 @@
self.onStartClick = function() {
if (self.selectedTask()) {
if (self.formChanged()) {
self.onSaveClick();
} else {
self.selectedTask().onStartClick();
}
self.selectedTask().onStartClick();
} else {
var time = new TimeModel();
time.startTime(moment().unix());
@ -499,7 +495,7 @@
+ '&project_name=' + encodeURIComponent(self.project() ? self.project().name() : '')
+ '&description=' + encodeURIComponent(self.description())
+ '&time_log=' + JSON.stringify(self.times());
var url = '{{ url('/tasks') }}';
var method = 'post';
if (self.public_id()) {