1
0
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:
Hillel Coren 2017-09-20 00:20:49 +03:00
parent 0df6d8c3ce
commit 8478be40de

View File

@ -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;