From: miker Date: Thu, 20 Mar 2008 03:11:56 +0000 (+0000) Subject: getting closer ... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a44baff9f9ef7ffe4aade8a97ec6cfba61551076;p=Evergreen.git getting closer ... git-svn-id: svn://svn.open-ils.org/ILS/branches/dojo-admin@9096 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/conify/global/actor/org_unit.html b/Open-ILS/web/conify/global/actor/org_unit.html index 663cc0fec3..679e17c0c4 100644 --- a/Open-ILS/web/conify/global/actor/org_unit.html +++ b/Open-ILS/web/conify/global/actor/org_unit.html @@ -3,8 +3,8 @@ Confiy :: Global :: Actor :: Org Units @@ -20,8 +20,9 @@ - + + + - var ou_list_data = {label : 'shortname', identifier : 'id' }; - var ou_list_store; - - var req = pCRUD.request({ - method : 'open-ils.permacrud.search.aou.atomic', - params : [ses, { id : { "!=" : null } } ], - onerror : function (r) { alert('Problem fetching org units'); }, - onresponse : function (r) { - var _data = r.recv().content; - +
+
+ - - + alert(js2JSON(item_data)); -
-
-
+ +
stuff goes here diff --git a/Open-ILS/web/conify/js/conify/fieldmapper/addToHash.js b/Open-ILS/web/conify/js/conify/fieldmapper/addToHash.js new file mode 100644 index 0000000000..29d7b9d86f --- /dev/null +++ b/Open-ILS/web/conify/js/conify/fieldmapper/addToHash.js @@ -0,0 +1,10 @@ + +function _toHash () { + var _hash = {}; + var _fields = fmclasses[this.classname]; + for ( var i=0; i < _fields.length; i++) _hash[_fields[i]] = '' + this[_fields[i]](); + return _hash; +} + +for (var i in fmclasses) window[i].prototype.toHash = _toHash; + diff --git a/Open-ILS/web/conify/js/fm_list2dojo.data.js b/Open-ILS/web/conify/js/fm_list2dojo.data.js deleted file mode 100644 index 9edae78388..0000000000 --- a/Open-ILS/web/conify/js/fm_list2dojo.data.js +++ /dev/null @@ -1,9 +0,0 @@ - -function _toHash () { - var _hash = {}; - for ( var i in fmclasses['aou']) _hash[i] = this[i](); - return _hash; -} - -aou.prototype.toHash = _toHash; -