From 23e7041980b82fdab5417256dfcf1db4fc08a52d Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 12 Jul 2010 18:12:55 +0000 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/actor/user/register.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 bea9fdf54..eb432c742 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); -- 2.11.0