Add locale-aware menu sort, use it for admin menu user/tsbere/sort_admin_menu
authorThomas Berezansky <tsbere@mvlc.org>
Mon, 5 Mar 2012 21:14:43 +0000 (16:14 -0500)
committerThomas Berezansky <tsbere@mvlc.org>
Mon, 5 Mar 2012 21:14:43 +0000 (16:14 -0500)
commit5ba938e7e3a8fed74906acf7f8d741abf9075e36
tree301800b216ec6a4cd7348a2b1ef417fa66707c51
parentd3bf88739ea88768d92831062219f76f58b6a1e3
Add locale-aware menu sort, use it for admin menu

Sort function can do recursive sorting and is menuseparator aware, sorting
within blocks defined by menuseparators.

Note: If a menu item has forceFirst set as an attribute it will be put in
front of the current sort group. So far this is only used to keep the
operator change menu item at the top of the admin menu.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/xul/staff_client/chrome/content/main/menu.js
Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul