INIT
This commit is contained in:
14
assets/js/offcanvas-send-invoice.js
Normal file
14
assets/js/offcanvas-send-invoice.js
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Send Invoice Offcanvas
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
(function () {
|
||||
// Send invoice textarea
|
||||
const invoiceMsg = document.querySelector('#invoice-message');
|
||||
|
||||
const trimMsg = invoiceMsg.textContent.replace(/^\s+|\s+$/gm, '');
|
||||
|
||||
invoiceMsg.value = trimMsg;
|
||||
})();
|
||||
Reference in New Issue
Block a user