From f166f5c28c3ba08edbbbd2a391aea62133465bc4 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 29 Oct 2009 19:47:53 +0000 Subject: [PATCH] teach the IDL how to teach JSON_v1 how to load classes when they are not yet loaded ... heh git-svn-id: svn://svn.open-ils.org/ILS/trunk@14683 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/fieldmapper/IDL.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Open-ILS/web/js/dojo/fieldmapper/IDL.js b/Open-ILS/web/js/dojo/fieldmapper/IDL.js index ff0d7af24c..ae80b741e6 100644 --- a/Open-ILS/web/js/dojo/fieldmapper/IDL.js +++ b/Open-ILS/web/js/dojo/fieldmapper/IDL.js @@ -24,6 +24,12 @@ if(!dojo._hasResource["fieldmapper.IDL"]) { 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; -- 2.11.0