From: miker Date: Tue, 1 Apr 2008 06:25:45 +0000 (+0000) Subject: dojo-ification; org_unit.html is acting up, but otherwise we are good X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ee9177ff68f7fcccebe343cdf639f18fb88ff266;p=Evergreen.git dojo-ification; org_unit.html is acting up, but otherwise we are good git-svn-id: svn://svn.open-ils.org/ILS/branches/dojo-admin@9172 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 5be7978cad..53c1b1b080 100644 --- a/Open-ILS/web/conify/global/actor/org_unit.html +++ b/Open-ILS/web/conify/global/actor/org_unit.html @@ -64,12 +64,16 @@ params : [ ses, { id : { "!=" : null } }, { order_by : { aou : 'shortname' } } ], onerror : function (r) { throw 'Problem fetching org units';}, oncomplete : function (r) { - window.ou_list_store = new dojo.data.ItemFileWriteStore({ data : aou.toStoreData( r.recv().content() ) }); + window._ou_list = r.recv().content(); + window._ou_data = aou.toStoreData( window._ou_list ); + window.ou_list_store = new dojo.data.ItemFileWriteStore({ data : window._ou_data }); + window.ou_list_store.onSet = function (item, attr, n, o) { if (attr == 'ischanged') return; if (n == o) return; this.setValue( item, 'ischanged', 1); }; + dojo.addOnUnload( function (event) { ou_list_store.fetch({ @@ -97,6 +101,18 @@ } }).send(); + pCRUD.request({ + method : 'open-ils.permacrud.search.aout.atomic', + timeout : 10, + params : [ ses, { id : { "!=" : null } }, { order_by : { aout : 'name' } } ], + onerror : function (r) { status_update('Problem fetching types') }, + oncomplete : function (r) { + window._ou_type_list = r.recv().content(); + window._ou_type_data = aout.toStoreData( window._ou_type_list ); + window.ou_type_store = new dojo.data.ItemFileReadStore({ data : window._ou_type_data }); + } + }).send(); +
-
+
@@ -172,81 +172,64 @@
- +