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
580ef69e2e
commit
c03d5a95c6
@ -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;
|
||||
|
@ -276,7 +276,6 @@
|
||||
|
||||
if (clientId && ! forceClear) {
|
||||
var list = projectsForClientMap.hasOwnProperty(clientId) ? projectsForClientMap[clientId] : [];
|
||||
console.log('client list: ' + clientId);
|
||||
} else {
|
||||
var list = projects;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user