[open-ils-commits] r12782 - branches/rel_1_4/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:15 EDT 2009
Author: phasefx
Date: 2009-04-03 15:14:11 -0400 (Fri, 03 Apr 2009)
New Revision: 12782
Modified:
branches/rel_1_4/Open-ILS/xul/staff_client/server/cat/copy_editor.js
Log:
sort item attribute editor templates alphabetically
Modified: branches/rel_1_4/Open-ILS/xul/staff_client/server/cat/copy_editor.js
===================================================================
--- branches/rel_1_4/Open-ILS/xul/staff_client/server/cat/copy_editor.js 2009-04-03 19:14:01 UTC (rev 12781)
+++ branches/rel_1_4/Open-ILS/xul/staff_client/server/cat/copy_editor.js 2009-04-03 19:14:11 UTC (rev 12782)
@@ -183,7 +183,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