mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-18 00:53:10 +01:00
615ef1e780
- 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);
|
|
});
|