[open-ils-commits] r7538 -
trunk/Open-ILS/xul/staff_client/server/cat
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 12 10:41:20 EDT 2007
Author: phasefx
Date: 2007-07-12 10:36:29 -0400 (Thu, 12 Jul 2007)
New Revision: 7538
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets.js
trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
Log:
alphabetical sort for bucket names in drop-down menu
Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets.js 2007-07-10 03:44:55 UTC (rev 7537)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_buckets.js 2007-07-12 14:36:29 UTC (rev 7538)
@@ -147,6 +147,12 @@
obj.bucket_id_name_map[ o.id() ] = o.name();
return [ o.name(), o.id() ];
}
+ ).sort(
+ function( a, b ) {
+ if (a[0] < b[0]) return -1;
+ if (a[0] > b[0]) return 1;
+ return 0;
+ }
)
);
obj.error.sdump('D_TRACE','items = ' + js2JSON(items));
Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2007-07-10 03:44:55 UTC (rev 7537)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2007-07-12 14:36:29 UTC (rev 7538)
@@ -158,6 +158,12 @@
obj.bucket_id_name_map[ o.id() ] = o.name();
return [ o.name(), o.id() ];
}
+ ).sort(
+ function( a, b ) {
+ if (a[0] < b[0]) return -1;
+ if (a[0] > b[0]) return 1;
+ return 0;
+ }
)
);
obj.error.sdump('D_TRACE','items = ' + js2JSON(items));
More information about the open-ils-commits
mailing list