From 8cdf061fcabb044a6f055f0e247b849403dc6d66 Mon Sep 17 00:00:00 2001 From: abijah Date: Fri, 12 Jun 2009 02:45:48 +0000 Subject: [PATCH] More minor cleanup git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@101 97e9348a-65ac-dc4b-aefc-98561f571b83 --- views/customers/payment.ctp | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/views/customers/payment.ctp b/views/customers/payment.ctp index def1d22..b3c2b88 100644 --- a/views/customers/payment.ctp +++ b/views/customers/payment.ctp @@ -86,7 +86,12 @@ echo $form->create(null, array('id' => 'payment-form', 'action' => 'payment')); // $.ajax options can be used here too, for example: //timeout: 3000 }; - + + // Get a clean slate for our payments + $('#payments').html(''); + $('#payment-id').val(1); + addPaymentSource(false); + // bind form using 'ajaxForm' $('#payment-form').ajaxForm(options); }); @@ -146,12 +151,11 @@ echo $form->create(null, array('id' => 'payment-form', 'action' => 'payment')); ?> '' + - '
' - + ( - '' + - '' + - '' ) + + '
' + + ' ' + + ' ' + '
' + create(null, array('id' => 'payment-form', 'action' => 'payment')); } ?> -/* '' + */ -/* '' + */ -/* '' + */ -/* '' + */ - '' ); @@ -269,8 +268,6 @@ function switchPaymentType(paymentid, type) { echo '
' . "\n"; echo $form->end('Send'); -echo '
' . "\n"; - ?> Clear Debug Output
@@ -281,9 +278,6 @@ echo '
' . "\n";