mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Working on time tracker
This commit is contained in:
parent
0df6d8c3ce
commit
8478be40de
@ -95,9 +95,6 @@
|
||||
|
||||
<div style="height:74px"></div>
|
||||
|
||||
|
||||
<div data-bind="text: ko.toJSON(model.formChanged())"></div>
|
||||
|
||||
<!--
|
||||
<div data-bind="text: ko.toJSON(model.selectedTask().client_id)"></div>
|
||||
<div data-bind="text: ko.toJSON(model.selectedTask().client)"></div>
|
||||
@ -252,8 +249,13 @@
|
||||
|
||||
self.onCancelClick = function() {
|
||||
sweetConfirm(function() {
|
||||
self.selectedTask(false);
|
||||
$('.search').focus();
|
||||
var task = self.selectedTask();
|
||||
if (task.isNew()) {
|
||||
self.selectedTask(false);
|
||||
$('.search').focus();
|
||||
} else {
|
||||
task.update(task.data);
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user