[open-ils-commits] r9135 -
branches/dojo-admin/Open-ILS/web/conify/js/conify/fieldmapper
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Mar 25 01:33:23 EDT 2008
Author: miker
Date: 2008-03-25 00:58:16 -0400 (Tue, 25 Mar 2008)
New Revision: 9135
Modified:
branches/dojo-admin/Open-ILS/web/conify/js/conify/fieldmapper/addFromStoreItem.js
Log:
tell fieldmapper to ignore data store "children" field
Modified: branches/dojo-admin/Open-ILS/web/conify/js/conify/fieldmapper/addFromStoreItem.js
===================================================================
--- branches/dojo-admin/Open-ILS/web/conify/js/conify/fieldmapper/addFromStoreItem.js 2008-03-25 04:57:36 UTC (rev 9134)
+++ branches/dojo-admin/Open-ILS/web/conify/js/conify/fieldmapper/addFromStoreItem.js 2008-03-25 04:58:16 UTC (rev 9135)
@@ -2,6 +2,9 @@
function _fromStoreItem (data) {
this.fromHash(data);
+ for (var i in this._ignore_fields)
+ this[this._ignore_fields[i]](null);
+
var _fields = fmclasses[this.classname];
for ( var i=0; i < _fields.length; i++) {
if (dojo.isArray( this[_fields[i]]() ))
@@ -12,3 +15,5 @@
for (var i in fmclasses) window[i].prototype.fromStoreItem = _fromStoreItem;
+aou.prototype._ignore_fields = ['children'];
+aout.prototype._ignore_fields = ['children'];
More information about the open-ils-commits
mailing list