[open-ils-commits] r12781 - trunk/Open-ILS/xul/staff_client/server/cat (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Apr 3 15:14:05 EDT 2009


Author: phasefx
Date: 2009-04-03 15:14:01 -0400 (Fri, 03 Apr 2009)
New Revision: 12781

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
Log:
sort item attribute editor templates alphabetically

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2009-04-03 18:33:58 UTC (rev 12780)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js	2009-04-03 19:14:01 UTC (rev 12781)
@@ -181,7 +181,7 @@
 			g.templates = robj['staff_client.copy_editor.templates'];
 		}
 		util.widgets.remove_children('template_placeholder');
-		var list = util.functional.map_object_to_list( g.templates, function(obj,i) { return [i, i]; } );
+		var list = util.functional.map_object_to_list( g.templates, function(obj,i) { return [i, i]; } ).sort();
 
 		g.template_menu = util.widgets.make_menulist( list );
         g.template_menu.setAttribute('id','template_menu');



More information about the open-ils-commits mailing list