mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on time tracker
This commit is contained in:
parent
4117c71215
commit
580ef69e2e
@ -263,7 +263,6 @@
|
||||
}
|
||||
|
||||
function refreshProjectList(forceClear) {
|
||||
console.log('refreshProjectList...');
|
||||
var clientId = $('input[name=client_id]').val();
|
||||
$projectCombobox = $('select#project_id');
|
||||
$projectCombobox.find('option').remove().end().combobox('refresh');
|
||||
|
@ -425,24 +425,24 @@
|
||||
success: function(response) {
|
||||
console.log(response);
|
||||
if (isSelected) {
|
||||
var isNew = !self.public_id();
|
||||
self.update(response);
|
||||
model.formChanged(false);
|
||||
var clientId = $('input[name=client_id]').val();
|
||||
if (clientId) {
|
||||
if (clientId == -1 && response.client) {
|
||||
var client = response.client;
|
||||
clients.push(client);
|
||||
addClientToMaps(client);
|
||||
refreshClientList();
|
||||
}
|
||||
var projectId = $('input[name=project_id]').val();
|
||||
if (projectId == -1) {
|
||||
if (projectId == -1 && response.project) {
|
||||
var project = response.project;
|
||||
project.client = response.client;
|
||||
projects.push(project);
|
||||
addProjectToMaps(project);
|
||||
refreshProjectList();
|
||||
}
|
||||
var isNew = !self.public_id();
|
||||
self.update(response);
|
||||
model.formChanged(false);
|
||||
if (isNew) {
|
||||
toastr.success("{{ trans('texts.created_task') }}");
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user