1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00
invoiceninja/public/build/assets/multiple-downloads-2f8b7e95.js
2023-09-26 08:24:51 +10:00

10 lines
538 B
JavaScript
Vendored

/**
* Invoice Ninja (https://invoiceninja.com)
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/const p=(m,t)=>{let n=document.getElementById(m),l=n.querySelector(`input[value="${t}"]`);if(l)return l.remove();let e=document.createElement("INPUT");e.setAttribute("name","file_hash[]"),e.setAttribute("value",t),e.hidden=!0,n.append(e)};window.appendToElement=p;