From 6fcaf9f31b3207a9fbc3fd90acdead598ecd25c8 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 2 Jun 2014 11:06:06 -0400 Subject: [PATCH] select refunds; bills OUS; grid refactoring Signed-off-by: Bill Erickson --- Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 2 +- .../staff/circ/patron/t_bill_history_payments.tt2 | 4 +- .../staff/circ/patron/t_bill_history_xacts.tt2 | 4 +- .../templates/staff/circ/patron/t_bills_list.tt2 | 6 +- .../staff/circ/patron/t_search_results.tt2 | 3 +- Open-ILS/src/templates/staff/share/t_autogrid.tt2 | 6 +- Open-ILS/web/js/ui/default/staff/cat/item/app.js | 12 ++- .../web/js/ui/default/staff/circ/patron/app.js | 30 ++++-- .../web/js/ui/default/staff/circ/patron/bills.js | 108 ++++++++++++++++----- Open-ILS/web/js/ui/default/staff/services/grid.js | 98 +++++++++---------- 10 files changed, 170 insertions(+), 103 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 index e4721077ca..8c296a897d 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -4,7 +4,7 @@ features="-display,-sort,-multisort" main-label="[% l('Item Status') %]" items-provider="gridDataProvider" - on-item-retrieved="gridItemRetrieved" + grid-controls="gridControls" persist-key="cat.items"> diff --git a/Open-ILS/src/templates/staff/circ/patron/t_bill_history_payments.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_bill_history_payments.tt2 index cba0df1679..823ef72d74 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_bill_history_payments.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_bill_history_payments.tt2 @@ -6,9 +6,7 @@ id-field="id" query="paymentQuery" sort="paymentSort" - activate-item="activatePayment" - selected-items="getSelectedItems" - all-items="getAllItems" + grid-controls="gridControls" revision="paymentRevision"> diff --git a/Open-ILS/src/templates/staff/circ/patron/t_search_results.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_search_results.tt2 index 7d74f43e20..ac83e6ddc9 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_search_results.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_search_results.tt2 @@ -2,9 +2,8 @@ idl-class="au" id-field="id" features="-sort,-display,-multisort" main-label="[% l('Patron Search Results') %]" + grid-controls="gridControls" items-provider="patronSearchGridProvider" - activate-item="activatePatron" - selected-items="getSelectedItems" persist-key="circ.patron.search"> diff --git a/Open-ILS/src/templates/staff/share/t_autogrid.tt2 b/Open-ILS/src/templates/staff/share/t_autogrid.tt2 index 27f01c88fa..8c8c6ff9cf 100644 --- a/Open-ILS/src/templates/staff/share/t_autogrid.tt2 +++ b/Open-ILS/src/templates/staff/share/t_autogrid.tt2 @@ -181,6 +181,7 @@
@@ -253,10 +254,11 @@ ng-class="{'eg-grid-row-selected' : selected[indexValue(item)]}">
- + {{$index + offset() + 1}} -
{{$index + offset() + 1}}
+
{{$index + offset() + 1}}