aboutsummaryrefslogtreecommitdiffstats
path: root/static/js/print_element.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2017-01-21 19:46:49 -0800
committerAdam Soltys <[email protected]>2017-01-21 19:46:49 -0800
commitba5200b50692b889f59df9f37c913b3ef85045c8 (patch)
tree755d79cf488d383fe2ffaf123c91be51e879ef35 /static/js/print_element.js
parentc413e457579b68b7a92ab47cdd867202ee7bb47e (diff)
downloadcoinos-server-ba5200b50692b889f59df9f37c913b3ef85045c8.tar.gz
coinos-server-ba5200b50692b889f59df9f37c913b3ef85045c8.zip
Ditch client code
Diffstat (limited to 'static/js/print_element.js')
-rw-r--r--static/js/print_element.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/static/js/print_element.js b/static/js/print_element.js
deleted file mode 100644
index ee0e7212..00000000
--- a/static/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);
-}