From: miker Date: Thu, 29 Oct 2009 19:47:53 +0000 (+0000) Subject: teach the IDL how to teach JSON_v1 how to load classes when they are not yet loaded... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f166f5c28c3ba08edbbbd2a391aea62133465bc4;p=evergreen%2Fmasslnc.git 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 --- 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;