From: Steve Sutton Date: Tue, 6 Feb 2018 19:32:07 +0000 (-0500) Subject: Update code X-Git-Tag: v1.0.0^2~168 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3f1ade3592532683dd9350742349376cafbee241;p=WP-Plugins%2Fglm-member-db-billing.git Update code adding docs --- 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() ); });