[open-ils-commits] r9299 -
branches/dojo-admin/Open-ILS/web/js/fieldmapper
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Apr 10 17:39:34 EDT 2008
Author: miker
Date: 2008-04-10 17:02:06 -0400 (Thu, 10 Apr 2008)
New Revision: 9299
Modified:
branches/dojo-admin/Open-ILS/web/js/fieldmapper/dojoData.js
Log:
use the namespaced objects instead of the global aliases
Modified: branches/dojo-admin/Open-ILS/web/js/fieldmapper/dojoData.js
===================================================================
--- branches/dojo-admin/Open-ILS/web/js/fieldmapper/dojoData.js 2008-04-10 19:51:06 UTC (rev 9298)
+++ branches/dojo-admin/Open-ILS/web/js/fieldmapper/dojoData.js 2008-04-10 21:02:06 UTC (rev 9299)
@@ -70,26 +70,24 @@
return data;
}
- for (var i in fmclasses) window[i].prototype.fromStoreItem = _fromStoreItem;
+ for (var i in fmclasses) fieldmapper[i].fromStoreItem = _fromStoreItem;
+ for (var i in fmclasses) fieldmapper[i].toStoreData = _toStoreData;
- aou.prototype._ignore_fields = ['children'];
- aout.prototype._ignore_fields = ['children'];
- pgt.prototype._ignore_fields = ['children'];
+ fieldmapper.aou.prototype._ignore_fields = ['children'];
+ fieldmapper.aout.prototype._ignore_fields = ['children'];
+ fieldmapper.pgt.prototype._ignore_fields = ['children'];
- // set up the defaults
- for (var i in fmclasses) window[i].toStoreData = _toStoreData;
-
- aou.toStoreData = function (list, label) {
+ fieldmapper.aou.toStoreData = function (list, label) {
if (!label) label = 'shortname';
return _toStoreData(list, label, { 'parent' : 'parent_ou', 'children' : 'children' });
}
- aout.toStoreData = function (list, label) {
+ fieldmapper.aout.toStoreData = function (list, label) {
if (!label) label = 'name';
return _toStoreData(list, label, { 'parent' : 'parent', 'children' : 'children' });
}
- pgt.toStoreData = function (list, label) {
+ fieldmapper.pgt.toStoreData = function (list, label) {
if (!label) label = 'name';
return _toStoreData(list, label, { 'parent' : 'parent', 'children' : 'children' });
}
More information about the open-ils-commits
mailing list