put fromStoreItem back on the prototype
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 11 Apr 2008 01:56:20 +0000 (01:56 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 11 Apr 2008 01:56:20 +0000 (01:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/dojo-admin@9302 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/fieldmapper/dojoData.js

index 1ff4c0b..60d17e0 100644 (file)
@@ -1,3 +1,20 @@
+/*
+# ---------------------------------------------------------------------------
+# Copyright (C) 2008  Georgia Public Library Service / Equinox Software, Inc
+# Mike Rylander <miker@esilibrary.com>
+# 
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# ---------------------------------------------------------------------------
+*/
+
 if(!dojo._hasResource['fieldmapper.dojoData']){
 
        dojo._hasResource['fieldmapper.dojoData'] = true;
@@ -70,7 +87,7 @@ if(!dojo._hasResource['fieldmapper.dojoData']){
                return data;
        }
 
-       for (var i in fmclasses) fieldmapper[i].fromStoreItem = _fromStoreItem;
+       for (var i in fmclasses) fieldmapper[i].prototype.fromStoreItem = _fromStoreItem;
        for (var i in fmclasses) fieldmapper[i].toStoreData = _toStoreData;
 
        fieldmapper.aou.prototype._ignore_fields = ['children'];