[open-ils-commits] r18665 - trunk/Open-ILS/web/js/dojo/fieldmapper (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 8 16:18:46 EST 2010
Author: miker
Date: 2010-11-08 16:18:40 -0500 (Mon, 08 Nov 2010)
New Revision: 18665
Modified:
trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js
Log:
teach vivicateClass to set up dojoData APIs for classes loaded by fieldmapper.IDL.load() when appropriate
Modified: trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js 2010-11-08 21:17:45 UTC (rev 18664)
+++ trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js 2010-11-08 21:18:40 UTC (rev 18665)
@@ -130,6 +130,16 @@
});
fieldmapper[cl] = window[cl]; // alias into place
if (fieldmapper.IDL && fieldmapper.IDL.loaded) fieldmapper[cl].Identifier = fieldmapper.IDL.fmclasses[cl].pkey;
+
+ if (dojo._hasResource['fieldmapper.dojoData'] && dojo.filter(['aou','aout','pgt'], function(x){return x == cl}).length == 0) {
+ fieldmapper[cl].prototype.fromStoreItem = _fromtoreItem;
+ fieldmapper[cl].prototype.fromStoreItem = _fromStoreItem;
+ fieldmapper[cl].toStoreData = _toStoreData;
+ fieldmapper[cl].toStoreItem = _toStoreItem;
+ fieldmapper[cl].prototype.toStoreItem = function ( args ) { return _toStoreItem(this, args) };
+ fieldmapper[cl].initStoreData = _initStoreData;
+ }
+
};
if (!window.fmclasses) dojo.require("fieldmapper.fmall", true);
More information about the open-ils-commits
mailing list