From 83f55e71ba54d91b4a9a5fdcdcdfc19e6c17c0b0 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 31 Jul 2014 14:45:24 -0400 Subject: [PATCH] LP#1270289 sort ACQ cancel reason selectors Sort lineitem and copy cancel reasons selectors by label. In addition to being generally useful, this helps to quick differentiate between delayed and canceled items in the list. Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/acq/common/li_table.js | 6 ++++-- Open-ILS/web/js/ui/default/acq/po/view_po.js | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index 028ca45712..0b2b766337 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -2515,7 +2515,8 @@ function AcqLiTable() { "fmClass": "acqlid", "parentNode": dojo.byId("acq-lit-lid-cancel-reason"), "orgLimitPerms": ["CREATE_PURCHASE_ORDER"], - "forceSync": true + "forceSync": true, + "searchOptions" : {order_by : {"acqcr":"label"}} }); widget.build( function(w, ww) { @@ -2903,7 +2904,8 @@ function AcqLiTable() { "fmClass": "jub", "parentNode": dojo.byId("acq-lit-cancel-reason-selector"), "orgLimitPerms": ["CREATE_PURCHASE_ORDER"], - "forceSync": true + "forceSync": true, + "searchOptions" : {order_by : {"acqcr":"label"}} }); widget.build( function(w, ww) { diff --git a/Open-ILS/web/js/ui/default/acq/po/view_po.js b/Open-ILS/web/js/ui/default/acq/po/view_po.js index f1ef20cc41..8a43179211 100644 --- a/Open-ILS/web/js/ui/default/acq/po/view_po.js +++ b/Open-ILS/web/js/ui/default/acq/po/view_po.js @@ -233,7 +233,8 @@ function makeCancelWidget(node, labelnode) { "fmClass": "acqpo", "parentNode": dojo.byId("acq-po-cancel-reason"), "orgLimitPerms": ["CREATE_PURCHASE_ORDER"], - "forceSync": true + "forceSync": true, + "searchOptions" : {order_by : {"acqcr":"label"}} }); widget.build( function(w, ww) { -- 2.11.0