mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:47:32 -05:00 
			
		
		
		
	- Remove processing overlay scripts - Add flash message to clean layout - Remove $balance > 0 check from filtered invoices - Only show the payment methods if total is bigger than 0 - Change flash message from "warning" to "message" - Show message for $1 payments
		
			
				
	
	
		
			26 lines
		
	
	
		
			498 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			498 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
			Vendored
		
	
	
	
/**
 | 
						|
 * Axios
 | 
						|
 *
 | 
						|
 * Promise based HTTP client for the browser and node.js
 | 
						|
 * https://github.com/axios/axios
 | 
						|
 */
 | 
						|
window.axios = require('axios');
 | 
						|
 | 
						|
/**
 | 
						|
 * card-validator
 | 
						|
 *
 | 
						|
 * Validate credit cards as users type.
 | 
						|
 * https://github.com/braintree/card-validator
 | 
						|
 */
 | 
						|
window.valid = require('card-validator');
 | 
						|
 | 
						|
 | 
						|
/**
 | 
						|
 * Remove flashing message div after 3 seconds.
 | 
						|
 */
 | 
						|
document.querySelectorAll('.disposable-alert').forEach((element) => {
 | 
						|
    setTimeout(() => {
 | 
						|
        element.remove();
 | 
						|
    }, 5000);
 | 
						|
});
 |