[open-ils-commits] r16912 - trunk/Open-ILS/web/js/ui/default/actor/user (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jul 12 14:12:59 EDT 2010
Author: phasefx
Date: 2010-07-12 14:12:55 -0400 (Mon, 12 Jul 2010)
New Revision: 16912
Modified:
trunk/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
printable_output() for the patron editor, given that printing the Dojo here is problematic
Modified: trunk/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2010-07-12 18:12:50 UTC (rev 16911)
+++ trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2010-07-12 18:12:55 UTC (rev 16912)
@@ -1274,6 +1274,20 @@
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);
More information about the open-ils-commits
mailing list