mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
Working on time tracker
This commit is contained in:
parent
ac44c1ebff
commit
954a7a8fd4
@ -225,11 +225,7 @@
|
|||||||
|
|
||||||
self.onStartClick = function() {
|
self.onStartClick = function() {
|
||||||
if (self.selectedTask()) {
|
if (self.selectedTask()) {
|
||||||
if (self.formChanged()) {
|
self.selectedTask().onStartClick();
|
||||||
self.onSaveClick();
|
|
||||||
} else {
|
|
||||||
self.selectedTask().onStartClick();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
var time = new TimeModel();
|
var time = new TimeModel();
|
||||||
time.startTime(moment().unix());
|
time.startTime(moment().unix());
|
||||||
@ -499,7 +495,7 @@
|
|||||||
+ '&project_name=' + encodeURIComponent(self.project() ? self.project().name() : '')
|
+ '&project_name=' + encodeURIComponent(self.project() ? self.project().name() : '')
|
||||||
+ '&description=' + encodeURIComponent(self.description())
|
+ '&description=' + encodeURIComponent(self.description())
|
||||||
+ '&time_log=' + JSON.stringify(self.times());
|
+ '&time_log=' + JSON.stringify(self.times());
|
||||||
|
|
||||||
var url = '{{ url('/tasks') }}';
|
var url = '{{ url('/tasks') }}';
|
||||||
var method = 'post';
|
var method = 'post';
|
||||||
if (self.public_id()) {
|
if (self.public_id()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user