From: Jason Etheridge Date: Wed, 29 Feb 2012 16:09:34 +0000 (-0500) Subject: helpspot 18373 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=db052f65252aa0e74faefefec493b1f6804f2fd7;p=evergreen%2Ftadl.git helpspot 18373 https://gist.github.com/179cd9a682a509537cb8 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/print_custom.js b/Open-ILS/xul/staff_client/chrome/content/util/print_custom.js new file mode 100644 index 0000000000..f59ec8261a --- /dev/null +++ b/Open-ILS/xul/staff_client/chrome/content/util/print_custom.js @@ -0,0 +1,17 @@ +function print_custom(type) { + var type; // we don't care about type + + var elements = document.getElementsByClassName("rcpt"); + var i; + + for (i = 0; i < elements.length; i++) { + e = elements[i]; + if (e.className.match(/tadlSlipDate/gi)) { + var pullDate = new Date(); + pullDate.setDate(pullDate.getDate() + 7); + var writeString = parseInt(pullDate.getMonth()+1) + '/' + pullDate.getDate(); + e.innerHTML = writeString; + } + } + +}