mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 19:24:40 -04:00
Disable/enable client portal setting checkboxes
This commit is contained in:
parent
d95d8ae5f0
commit
ec05cd1160
@ -393,15 +393,21 @@ iframe.src = '{{ rtrim(SITE_URL ,'/') }}/view/'
|
|||||||
}
|
}
|
||||||
$productSelect.combobox({highlighter: comboboxHighlighter});
|
$productSelect.combobox({highlighter: comboboxHighlighter});
|
||||||
|
|
||||||
fixCheckboxes();
|
updateCheckboxes();
|
||||||
updateBuyNowButtons();
|
updateBuyNowButtons();
|
||||||
})
|
})
|
||||||
|
|
||||||
$('#enable_portal_password').change(fixCheckboxes);
|
$('#enable_portal_password, #enable_client_portal, #require_invoice_signature, #require_quote_signature').change(updateCheckboxes);
|
||||||
|
|
||||||
function fixCheckboxes() {
|
function updateCheckboxes() {
|
||||||
var checked = $('#enable_portal_password').is(':checked');
|
var checked = $('#enable_portal_password').is(':checked');
|
||||||
$('#send_portal_password').prop('disabled', !checked);
|
$('#send_portal_password').prop('disabled', ! checked);
|
||||||
|
|
||||||
|
var checked = $('#enable_client_portal').is(':checked');
|
||||||
|
$('#enable_client_portal_dashboard').prop('disabled', ! checked);
|
||||||
|
|
||||||
|
var checked = $('#require_invoice_signature').is(':checked') || $('#require_quote_signature').is(':checked');
|
||||||
|
$('#signature_on_pdf').prop('disabled', ! checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
function showPaymentTypes() {
|
function showPaymentTypes() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user