mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for buy now clients
This commit is contained in:
parent
ec613b1d90
commit
c3168e0166
@ -844,9 +844,11 @@
|
|||||||
var client = clients[i];
|
var client = clients[i];
|
||||||
clientMap[client.public_id] = client;
|
clientMap[client.public_id] = client;
|
||||||
var clientName = getClientDisplayName(client);
|
var clientName = getClientDisplayName(client);
|
||||||
if (!clientName) {
|
@if (! $invoice->id)
|
||||||
continue;
|
if (!clientName) {
|
||||||
}
|
continue;
|
||||||
|
}
|
||||||
|
@endif
|
||||||
for (var j=0; j<client.contacts.length; j++) {
|
for (var j=0; j<client.contacts.length; j++) {
|
||||||
var contact = client.contacts[j];
|
var contact = client.contacts[j];
|
||||||
var contactName = getContactDisplayName(contact);
|
var contactName = getContactDisplayName(contact);
|
||||||
@ -1384,6 +1386,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function submitAction(value) {
|
function submitAction(value) {
|
||||||
|
if (!isSaveValid()) {
|
||||||
|
model.showClientForm();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$('#action').val(value);
|
$('#action').val(value);
|
||||||
$('#submitButton').click();
|
$('#submitButton').click();
|
||||||
}
|
}
|
||||||
|
@ -670,7 +670,7 @@ function ContactModel(data) {
|
|||||||
var str = '';
|
var str = '';
|
||||||
@if (Utils::isConfirmed())
|
@if (Utils::isConfirmed())
|
||||||
if (self.invitation_link()) {
|
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()
|
str += '<a href="' + self.invitation_link() + '" onclick="window.open(\'' + self.invitation_link()
|
||||||
+ '?silent=true\', \'_blank\');return false;">{{ trans('texts.view_as_recipient') }}</a>';
|
+ '?silent=true\', \'_blank\');return false;">{{ trans('texts.view_as_recipient') }}</a>';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user