{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}
}
}
+ /**
+ * Check field against regular expression.
+ */
function checkRegexp( fieldName, regexp, message ) {
if ( !( regexp.test( fieldName.val() ) ) ) {
fieldName.addClass( 'ui-state-error' );
}
}
-
+ /**
+ * Update the Tips for dialog form.
+ */
function updateTips( tips, t ) {
tips
.text( t )
});
}
+ /**
+ * Ajax call to get the list of members without accounts.
+ */
function updateNonAccountMemberSelect() {
$.ajax({
url: '{$ajaxUrl}',
$('#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() );
});