[open-ils-commits] r9170 -
branches/dojo-admin/Open-ILS/web/conify/js/fieldmapper
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 1 00:13:56 EDT 2008
Author: miker
Date: 2008-03-31 23:37:51 -0400 (Mon, 31 Mar 2008)
New Revision: 9170
Added:
branches/dojo-admin/Open-ILS/web/conify/js/fieldmapper/hash.js
Removed:
branches/dojo-admin/Open-ILS/web/conify/js/fieldmapper/addFromHash.js
Log:
dojo-ification
Deleted: branches/dojo-admin/Open-ILS/web/conify/js/fieldmapper/addFromHash.js
===================================================================
--- branches/dojo-admin/Open-ILS/web/conify/js/fieldmapper/addFromHash.js 2008-04-01 03:37:32 UTC (rev 9169)
+++ branches/dojo-admin/Open-ILS/web/conify/js/fieldmapper/addFromHash.js 2008-04-01 03:37:51 UTC (rev 9170)
@@ -1,33 +0,0 @@
-if(!dojo._hasResource['fieldmapper.hash']){
-
- dojo._hasResource['fieldmapper.hash'] = true;
- dojo.provide('fieldmapper.hash');
- dojo.require('fieldmapper.Fieldmapper');
-
- function _fromHash (_hash) {
- var _fields = fmclasses[this.classname];
- for ( var i=0; i < _fields.length; i++) {
- if (_hash[_fields[i]] != null)
- this[_fields[i]]( _hash[_fields[i]] );
- }
- return this;
- }
-
- for (var i in fmclasses) {
- window[i].prototype.fromHash = _fromHash;
- window[i].prototype.toHash = _toHash;
- }
-
-
- function _toHash () {
- var _hash = {};
- var _fields = fmclasses[this.classname];
- for ( var i=0; i < _fields.length; i++) {
- if (this[_fields[i]]() != null)
- _hash[_fields[i]] = '' + this[_fields[i]]();
- }
- return _hash;
- }
-
-
-}
Copied: branches/dojo-admin/Open-ILS/web/conify/js/fieldmapper/hash.js (from rev 9169, branches/dojo-admin/Open-ILS/web/conify/js/fieldmapper/addFromHash.js)
===================================================================
--- branches/dojo-admin/Open-ILS/web/conify/js/fieldmapper/hash.js (rev 0)
+++ branches/dojo-admin/Open-ILS/web/conify/js/fieldmapper/hash.js 2008-04-01 03:37:51 UTC (rev 9170)
@@ -0,0 +1,33 @@
+if(!dojo._hasResource['fieldmapper.hash']){
+
+ dojo._hasResource['fieldmapper.hash'] = true;
+ dojo.provide('fieldmapper.hash');
+ dojo.require('fieldmapper.Fieldmapper');
+
+ function _fromHash (_hash) {
+ var _fields = fmclasses[this.classname];
+ for ( var i=0; i < _fields.length; i++) {
+ if (_hash[_fields[i]] != null)
+ this[_fields[i]]( _hash[_fields[i]] );
+ }
+ return this;
+ }
+
+ for (var i in fmclasses) {
+ window[i].prototype.fromHash = _fromHash;
+ window[i].prototype.toHash = _toHash;
+ }
+
+
+ function _toHash () {
+ var _hash = {};
+ var _fields = fmclasses[this.classname];
+ for ( var i=0; i < _fields.length; i++) {
+ if (this[_fields[i]]() != null)
+ _hash[_fields[i]] = '' + this[_fields[i]]();
+ }
+ return _hash;
+ }
+
+
+}
More information about the open-ils-commits
mailing list