From 3f1ade3592532683dd9350742349376cafbee241 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 6 Feb 2018 14:32:07 -0500 Subject: [PATCH] Update code adding docs --- views/admin/billing/editInvoice.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/views/admin/billing/editInvoice.html b/views/admin/billing/editInvoice.html index cbce92e..1d471cf 100644 --- a/views/admin/billing/editInvoice.html +++ b/views/admin/billing/editInvoice.html @@ -6,7 +6,7 @@ {if $invoiceUpdateError}Notification Update Error{/if} {if $invoiceInsertError}Notification Insert Error{/if} {if $invoiceAdded}Notification Added{/if} -{$ajaxUrl} +
{if $invoice_id} @@ -352,6 +352,9 @@ jQuery(document).ready(function($){ } } + /** + * Check field against regular expression. + */ function checkRegexp( fieldName, regexp, message ) { if ( !( regexp.test( fieldName.val() ) ) ) { fieldName.addClass( 'ui-state-error' ); @@ -362,7 +365,9 @@ jQuery(document).ready(function($){ } } - + /** + * Update the Tips for dialog form. + */ function updateTips( tips, t ) { tips .text( t ) @@ -396,6 +401,9 @@ jQuery(document).ready(function($){ }); } + /** + * Ajax call to get the list of members without accounts. + */ function updateNonAccountMemberSelect() { $.ajax({ url: '{$ajaxUrl}', @@ -526,6 +534,9 @@ jQuery(document).ready(function($){ $('#invoice_due_date').val( $(this).find('option:selected').data('anniversary') ); }); + /** + * Update the member name field when you select a member from the add account form. + */ $('#non-member-account').change(function(){ $('#glm_member_name').val( $(this).find('option:selected').text() ); }); -- 2.17.1