if (fieldmapper.IDL && fieldmapper.IDL.loaded)
fieldmapper[cl].Identifier = fieldmapper.IDL.fmclasses[cl].pkey;
- //if (dojo.filter(['aou','aout','pgt'], function(x){return x == cl}).length == 0) {
- fieldmapper[cl].prototype.fromStoreItem = _fromStoreItem;
- fieldmapper[cl].toStoreData = _toStoreData;
- fieldmapper[cl].toStoreItem = _toStoreItem;
- fieldmapper[cl].prototype.toStoreItem = function ( args ) { return _toStoreItem(this, args) };
- fieldmapper[cl].initStoreData = _initStoreData;
- fieldmapper[cl].prototype.toHash = _toHash;
- fieldmapper[cl].toHash = _toHash;
- fieldmapper[cl].prototype.fromHash = _fromHash;
- fieldmapper[cl].fromHash = _fromHash;
- //}
+ fieldmapper[cl].prototype.fromStoreItem = _fromStoreItem;
+ fieldmapper[cl].toStoreData = _toStoreData;
+ fieldmapper[cl].toStoreItem = _toStoreItem;
+ fieldmapper[cl].prototype.toStoreItem = function ( args ) { return _toStoreItem(this, args) };
+ fieldmapper[cl].initStoreData = _initStoreData;
+ fieldmapper[cl].prototype.toHash = _toHash;
+ fieldmapper[cl].toHash = _toHash;
+ fieldmapper[cl].prototype.fromHash = _fromHash;
+ fieldmapper[cl].fromHash = _fromHash;
};
fieldmapper._request = function ( meth, staff, params ) {
- /** ! Begin code that executes on page parse */
+ /** ! Begin code that executes on page load */
if (!window.fmclasses) dojo.require("fieldmapper.fmall", true);
for( var cl in fmclasses ) {
if(!fieldmapper.IDL.fmclasses || (classlist && classlist.length)) {
var idl_url = this._URL_PATH;
- if (classlist.length > 1 || classlist[0] != '*') {
+ if (classlist.length && (classlist.length > 1 || classlist[0] != '*')) {
idl_url += '?';
for (var i = 0; i < classlist.length; i++) {
if( !idl_url.match(/\?$/) ) { // make sure we have classes that need loading
- console.log("Fetching classes from server at " + idl_url + ':' + classlist);
-
var self = this;
dojo.xhrGet({
url : idl_url,