From 416d783266ff3af3de35f72253e8e939c21ba7b4 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 22 Oct 2009 03:34:50 +0000 Subject: [PATCH] provisional fix for non-IDL fieldmapper mode -- push isnew, ischanged and isdeleted to the end of the field list git-svn-id: svn://svn.open-ils.org/ILS/trunk@14549 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js b/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js index 9a6927504b..82ebb42e04 100644 --- a/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js +++ b/Open-ILS/web/js/dojo/fieldmapper/Fieldmapper.js @@ -71,9 +71,11 @@ if(!dojo._hasResource["fieldmapper.Fieldmapper"]){ 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 @@ if(!dojo._hasResource["fieldmapper.Fieldmapper"]){ } // ... 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(!dojo._hasResource["fieldmapper.Fieldmapper"]){ 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]; -- 2.11.0