[open-ils-commits] r11396 - trunk/Open-ILS/web/js/ui/default/conify/global/config
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Dec 3 16:42:22 EST 2008
Author: erickson
Date: 2008-12-03 16:42:17 -0500 (Wed, 03 Dec 2008)
New Revision: 11396
Modified:
trunk/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js
trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js
Log:
plugged in object sort
Modified: trunk/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js 2008-12-03 21:41:34 UTC (rev 11395)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/billing_type.js 2008-12-03 21:42:17 UTC (rev 11396)
@@ -36,6 +36,7 @@
params: [openils.User.authtoken, btContextOrg, fieldmapper.aou.findOrgDepth(btContextOrg)],
oncomplete: function(r) {
if(btList = openils.Util.readResponse(r)) {
+ btList = openils.Util.objectSort(btList);
var store = new dojo.data.ItemFileReadStore({data:cbt.toStoreData(btList)});
btGrid.setStore(store);
btGrid.render();
Modified: trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js 2008-12-03 21:41:34 UTC (rev 11395)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js 2008-12-03 21:42:17 UTC (rev 11396)
@@ -12,13 +12,7 @@
params: [openils.User.authtoken, {id:{'!=':null}}],
oncomplete: function(r) {
if(spList = openils.Util.readResponse(r)) {
- spList = spList.sort(
- function(a, b) {
- if(a.id() > b.id())
- return 1;
- return -1;
- }
- );
+ spList = openils.Util.objectSort(spList);
var store = new dojo.data.ItemFileReadStore({data:csp.toStoreData(spList)});
spGrid.setStore(store);
spGrid.render();
More information about the open-ils-commits
mailing list