Update code
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 6 Feb 2018 19:32:07 +0000 (14:32 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 6 Feb 2018 19:32:07 +0000 (14:32 -0500)
adding docs

views/admin/billing/editInvoice.html

index cbce92e..1d471cf 100644 (file)
@@ -6,7 +6,7 @@
 {if $invoiceUpdateError}<span class="glm-notice glm-flash-updated">Notification Update Error</span>{/if}
 {if $invoiceInsertError}<span class="glm-notice glm-flash-updated">Notification Insert Error</span>{/if}
 {if $invoiceAdded}<span class="glm-notice glm-flash-updated">Notification Added</span>{/if}
-{$ajaxUrl}
+
 <div id="billing-invoice-form">
     <form action="{$thisUrl}?page={$thisPage}&glm_action=invoices" method="post">
         {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() );
     });