[open-ils-commits] r14549 - trunk/Open-ILS/web/js/dojo/fieldmapper (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Oct 21 23:34:53 EDT 2009


Author: miker
Date: 2009-10-21 23:34:50 -0400 (Wed, 21 Oct 2009)
New Revision: 14549

Modified:
   trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js
Log:
provisional fix for non-IDL fieldmapper mode -- push isnew, ischanged and isdeleted to the end of the field list

Modified: trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js	2009-10-22 03:32:09 UTC (rev 14548)
+++ trunk/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js	2009-10-22 03:34:50 UTC (rev 14549)
@@ -71,9 +71,11 @@
 			return obj;
 		},
 
+/*
 		isnew : function(n) { if(arguments.length == 1) this.a[0] =n; return this.a[0]; },
 		ischanged : function(n) { if(arguments.length == 1) this.a[1] =n; return this.a[1]; },
 		isdeleted : function(n) { if(arguments.length == 1) this.a[2] =n; return this.a[2]; }
+*/
 	});
 
 	fieldmapper._request = function ( meth, staff, params ) {
@@ -160,6 +162,7 @@
     	}
 
     // ... otherwise we need to get the oldschool fmall.js stuff, which will lack .structure
+    // XXX This is now deprecated in preference to fieldmapper.AutoIDL
     } else {
     	if (!window.fmclasses)
             dojo.require("fieldmapper.fmall", true);
@@ -171,6 +174,7 @@
     				if (!this.a) this.a = [];
     				this.classname = this.declaredClass;
     				this._fields = fmclasses[this.classname];
+                    this._fields.push('isnew', 'ischanged', 'isdeleted');
     				for( var pos = 0; pos <  this._fields.length; pos++ ) {
     					var p = parseInt(pos);
     					var f = this._fields[pos];



More information about the open-ils-commits mailing list