[open-ils-commits] r15700 - trunk/Open-ILS/web/conify/global/permission (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 4 15:07:45 EST 2010
Author: miker
Date: 2010-03-04 15:07:40 -0500 (Thu, 04 Mar 2010)
New Revision: 15700
Modified:
trunk/Open-ILS/web/conify/global/permission/grp_tree.html
trunk/Open-ILS/web/conify/global/permission/perm_list.html
Log:
MORE: convert from permacrud to pcrud -- not as big as it looks -- and move some startup logic to the top (even though yslow will hate me)
Modified: trunk/Open-ILS/web/conify/global/permission/grp_tree.html
===================================================================
--- trunk/Open-ILS/web/conify/global/permission/grp_tree.html 2010-03-04 20:05:51 UTC (rev 15699)
+++ trunk/Open-ILS/web/conify/global/permission/grp_tree.html 2010-03-04 20:07:40 UTC (rev 15700)
@@ -77,7 +77,7 @@
var dirtyStore = [];
var current_group;
- var _group_list = server.pcrud.retrieveAll('pgt');
+ var _group_list = server.pcrud.retrieveAll('pgt', { order_by : { pgt : 'name' } });
var _group_data = pgt.toStoreData( _group_list );
var group_store = new dojo.data.ItemFileWriteStore({ data : _group_data });
@@ -109,11 +109,11 @@
});
- var _ou_type_list = server.pcrud.retrieveAll('aout');
+ var _ou_type_list = server.pcrud.retrieveAll('aout', { order_by : { aout : 'depth' } });
var _ou_type_data = aout.toStoreData( _ou_type_list );
var ou_type_store = new dojo.data.ItemFileReadStore({ data : _ou_type_data });
- var _perm_list = server.pcrud.retrieveAll('ppl');
+ var _perm_list = server.pcrud.retrieveAll('ppl', { order_by : { ppl : 'code' } });
var _perm_data = ppl.toStoreData( _perm_list, 'code' );
var _perm_name_data = ppl.toStoreData( _perm_list, 'code', { identifier : 'code' } );
Modified: trunk/Open-ILS/web/conify/global/permission/perm_list.html
===================================================================
--- trunk/Open-ILS/web/conify/global/permission/perm_list.html 2010-03-04 20:05:51 UTC (rev 15699)
+++ trunk/Open-ILS/web/conify/global/permission/perm_list.html 2010-03-04 20:07:40 UTC (rev 15700)
@@ -70,7 +70,7 @@
var dirtyStore = [];
var perm_rows = [];
- var _perm_list = pCRUD.retrieveAll('ppl');
+ var _perm_list = pCRUD.retrieveAll('ppl', { order_by : { ppl : 'code' } });
var _perm_data = ppl.toStoreData( _perm_list, 'code' );
var perm_store = new dojo.data.ItemFileWriteStore({ data : _perm_data });
More information about the open-ils-commits
mailing list