From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Mon, 12 Jul 2010 18:12:55 +0000 (+0000)
Subject: printable_output() for the patron editor, given that printing the Dojo here is proble... 
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=23e7041980b82fdab5417256dfcf1db4fc08a52d;p=evergreen%2Ftadl.git

printable_output() for the patron editor, given that printing the Dojo here is problematic


git-svn-id: svn://svn.open-ils.org/ILS/trunk@16912 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js
index bea9fdf544..eb432c742c 100644
--- a/Open-ILS/web/js/ui/default/actor/user/register.js
+++ b/Open-ILS/web/js/ui/default/actor/user/register.js
@@ -1274,6 +1274,20 @@ function uEditToggleRequired() {
     openils.Util.toggle('uedit-show-all');
 }
 
-
+function printable_output() {
+    var temp; var s = '=-=-=-=\r\n';
+    for (var idx in widgetPile) {
+        var w = widgetPile[idx];
+        var val = uEditWidgetVal(w);
+        var label = w.idlField.label;
+        if (temp != w._wtype) {
+            temp = w._wtype;
+            s += '-------\r\n';
+        }
+        s += label + ':\t' + (typeof val == 'object' ? '' : val) + '\r\n';
+    }
+    s += '=-=-=-=\r\n';
+    return s;
+}
 
 openils.Util.addOnLoad(load);