1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 07:33:04 +01:00
invoiceninja/public/build/assets/multiple-downloads-2f8b7e95.js

10 lines
538 B
JavaScript
Raw Normal View History

2023-09-26 00:24:51 +02:00
/**
* 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;