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-25 14:06:21 +03:00
parent 580ef69e2e
commit c03d5a95c6
3 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,6 @@ var {{ $entityType }}Name = '';
${{ $entityType }}Select.combobox({
highlighter: function (item) {
console.log(item);
if (item.indexOf("{{ trans("texts.create_{$entityType}") }}") == 0) {
{{ $entityType }}Name = this.query;
return "{{ trans("texts.create_{$entityType}") }}: " + this.query;

View File

@ -276,7 +276,6 @@
if (clientId && ! forceClear) {
var list = projectsForClientMap.hasOwnProperty(clientId) ? projectsForClientMap[clientId] : [];
console.log('client list: ' + clientId);
} else {
var list = projects;
}

View File

@ -84,7 +84,7 @@
sweetConfirm(function() {
var task = self.selectedTask();
if (task.isNew()) {
self.selectedTask(false);
self.selectTask(false);
self.removeTask(task);
$('.search').focus();
} else {
@ -97,11 +97,11 @@
}
self.onFilterFocus = function(data) {
self.selectedTask(false);
self.selectTask(false);
}
self.onFilterChanged = function(data) {
self.selectedTask(false);
self.selectTask(false);
self.selectedClient(false);
self.selectedProject(false);
}
@ -302,7 +302,9 @@
if (task == self.selectedTask()) {
task = false;
$('.search').focus();
if (! $('#search').is(':focus')) {
$('#search').focus();
}
}
// if a client is selected the project list will be filtered