From: phasefx Date: Fri, 3 Apr 2009 19:14:01 +0000 (+0000) Subject: sort item attribute editor templates alphabetically X-Git-Tag: sprint4-merge-nov22~10332 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9454e08fd69a1b4496490e492da919eb4acf9532;p=working%2FEvergreen.git sort item attribute editor templates alphabetically git-svn-id: svn://svn.open-ils.org/ILS/trunk@12781 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.js b/Open-ILS/xul/staff_client/server/cat/copy_editor.js index 4a70bad1b2..033b55f318 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -181,7 +181,7 @@ g.retrieve_templates = function() { 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');