minor tweaks
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Dec 2006 15:31:20 +0000 (15:31 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Dec 2006 15:31:20 +0000 (15:31 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6684 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/marc_new.xul

index aac9f0f..543563d 100644 (file)
@@ -56,7 +56,7 @@
                                if (typeof templates.ilsevent != 'undefined') throw(templates);
                                var ml = util.widgets.make_menulist(
                                        util.functional.map_list(
-                                               templates,
+                                               templates.sort(),
                                                function(el) {
                                                        return [ el /* The menu entry label */, el /* The menu entry value */ ];
                                                }
                                                        /* hide template widgets */
                                                        $('actions').hidden = true;
 
+                                                       window.xulG.set_tab_name(template_name);
+
                                                } catch(E) {
                                                        g.error.standard_unexpected_error_alert(
                                                                'Error loading MARC template: ' + template_name,