diff options
| author | Adam Soltys <[email protected]> | 2017-01-15 18:24:09 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2017-01-15 18:24:09 -0800 |
| commit | 7762ceaa7e2bb34f8758e17a4c8f512fa6a81b9e (patch) | |
| tree | 91bb1d1b8fe6ad77a48f0e429d9bfd35834c78d9 /public/js/print_element.js | |
| parent | 0ae266bf88f9f79c7e99b272688126898303daa4 (diff) | |
| download | coinos-server-7762ceaa7e2bb34f8758e17a4c8f512fa6a81b9e.tar.gz coinos-server-7762ceaa7e2bb34f8758e17a4c8f512fa6a81b9e.zip | |
Initial Vueification
Diffstat (limited to 'public/js/print_element.js')
| -rw-r--r-- | public/js/print_element.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/public/js/print_element.js b/public/js/print_element.js deleted file mode 100644 index ee0e7212..00000000 --- a/public/js/print_element.js +++ /dev/null @@ -1,26 +0,0 @@ -function printElement(elem, append, delimiter) { - var domClone = elem.cloneNode(true); - - var $printSection = document.getElementById("printSection"); - - if (!$printSection) { - var $printSection = document.createElement("div"); - $printSection.id = "printSection"; - document.body.appendChild($printSection); - } - - if (append !== true) { - $printSection.innerHTML = ""; - } - - else if (append === true) { - if (typeof (delimiter) === "string") { - $printSection.innerHTML += delimiter; - } - else if (typeof (delimiter) === "object") { - $printSection.appendChlid(delimiter); - } - } - - $printSection.appendChild(domClone); -} |
