[open-ils-commits] r14683 - trunk/Open-ILS/web/js/dojo/fieldmapper (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Oct 29 15:47:58 EDT 2009
Author: miker
Date: 2009-10-29 15:47:53 -0400 (Thu, 29 Oct 2009)
New Revision: 14683
Modified:
trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js
Log:
teach the IDL how to teach JSON_v1 how to load classes when they are not yet loaded ... heh
Modified: trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js 2009-10-29 19:46:48 UTC (rev 14682)
+++ trunk/Open-ILS/web/js/dojo/fieldmapper/IDL.js 2009-10-29 19:47:53 UTC (rev 14683)
@@ -24,6 +24,12 @@
if (i > 0) idl_url += '&';
idl_url += 'class=' + trim_class;
}
+
+ JSON2js.fallbackObjectifier = function (arg, key_name, val_name) {
+ fieldmapper.IDL.load([key_name]);
+ return decodeJS(arg);
+ }
+
}
var self = this;
More information about the open-ils-commits
mailing list