Fixes payment behaviour.
This commit is contained in:
		
							parent
							
								
									dba220d678
								
							
						
					
					
						commit
						42892ea3c8
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		|  | @ -56,9 +56,7 @@ | ||||||
| 
 | 
 | ||||||
|         // Submit the form: |         // Submit the form: | ||||||
| 
 | 
 | ||||||
|         $submit.prop('disabled', false); |         $form.get(0).submit(); | ||||||
|         $submit.click(); |  | ||||||
|         $submit.prop('disabled', true); |  | ||||||
|         $form.append($('<p>').text("Processing your payment. Please do not refresh.")); |         $form.append($('<p>').text("Processing your payment. Please do not refresh.")); | ||||||
|       } |       } | ||||||
|     }; |     }; | ||||||
|  | @ -97,7 +95,7 @@ | ||||||
|       {% include "_form_snippet.html" with form=form %} |       {% include "_form_snippet.html" with form=form %} | ||||||
|       <br /> |       <br /> | ||||||
|       <div class="btn-group"> |       <div class="btn-group"> | ||||||
|         <input id="submit" class="btn btn-primary" type="submit" value="Pay ${{ invoice.balance_due }}" /> |         <input id="pay" class="btn btn-primary" type="submit" value="Pay ${{ invoice.balance_due }}" /> | ||||||
|       </div> |       </div> | ||||||
|     </fieldset> |     </fieldset> | ||||||
|   </form> |   </form> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer