mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for buy now clients
This commit is contained in:
parent
ec613b1d90
commit
c3168e0166
@ -844,9 +844,11 @@
|
||||
var client = clients[i];
|
||||
clientMap[client.public_id] = client;
|
||||
var clientName = getClientDisplayName(client);
|
||||
if (!clientName) {
|
||||
continue;
|
||||
}
|
||||
@if (! $invoice->id)
|
||||
if (!clientName) {
|
||||
continue;
|
||||
}
|
||||
@endif
|
||||
for (var j=0; j<client.contacts.length; j++) {
|
||||
var contact = client.contacts[j];
|
||||
var contactName = getContactDisplayName(contact);
|
||||
@ -1384,6 +1386,11 @@
|
||||
}
|
||||
|
||||
function submitAction(value) {
|
||||
if (!isSaveValid()) {
|
||||
model.showClientForm();
|
||||
return false;
|
||||
}
|
||||
|
||||
$('#action').val(value);
|
||||
$('#submitButton').click();
|
||||
}
|
||||
|
@ -670,7 +670,7 @@ function ContactModel(data) {
|
||||
var str = '';
|
||||
@if (Utils::isConfirmed())
|
||||
if (self.invitation_link()) {
|
||||
// clicking add 'silent=true' however it's removed when copying the link
|
||||
// clicking adds 'silent=true' however it's removed when copying the link
|
||||
str += '<a href="' + self.invitation_link() + '" onclick="window.open(\'' + self.invitation_link()
|
||||
+ '?silent=true\', \'_blank\');return false;">{{ trans('texts.view_as_recipient') }}</a>';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user