CAT-55 Save Archived Message Columns
authorKyle Huckins <khuckins@catalystdevworks.com>
Thu, 14 Apr 2016 17:14:40 +0000 (10:14 -0700)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Port previous commit's changes over to the
archived message's pane.

Signed-off-by: Kyle Huckins <khuckins@catalystdevworks.com>
 Changes to be committed:
modified:   Open-ILS/web/opac/locale/en-US/lang.dtd
modified:   Open-ILS/xul/staff_client/server/patron/standing_penalties.js
modified:   Open-ILS/xul/staff_client/server/patron/standing_penalties.xul

Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/server/patron/standing_penalties.js
Open-ILS/xul/staff_client/server/patron/standing_penalties.xul

index f10f076..ff5b53e 100644 (file)
 <!ENTITY staff.patron_display.penalty.menu.actions.archive.label "Archive Penalty/Message">
 <!ENTITY staff.patron_display.penalty.menu.actions.archive.accesskey "A">
 <!ENTITY staff.patron_display.penalty.column.save.label "Save Columns">
+<!ENTITY staff.patron_display.penalty.column.archive.save.label "Save Archived Messages Columns">
 <!ENTITY staff.patron_display.apply_penalty_dialog.title "Apply Standing Penalty/Message">
 <!ENTITY staff.patron_display.apply_penalty_dialog.header "Apply Standing Penalty/Message">
 <!ENTITY staff.patron_display.apply_penalty_dialog.description "Notes, Alerts, Blocks">
index 3afff57..c928783 100644 (file)
@@ -36,6 +36,7 @@ function penalty_init() {
         window.standing_penalties_event_listeners.add(document.getElementById('cmd_edit_penalty'), 'command', handle_edit_penalty, false);
         window.standing_penalties_event_listeners.add(document.getElementById('cmd_archive_penalty'), 'command', handle_archive_penalty, false);
         window.standing_penalties_event_listeners.add(document.getElementById('cmd_save_columns'), 'command', handle_column_save, false);
+        window.standing_penalties_event_listeners.add(document.getElementById('cmd_save_archived_columns'), 'command', handle_archive_column_save, false);
         window.standing_penalties_event_listeners.add(document.getElementById('cmd_retrieve_archived_penalties'), 'command', handle_retrieve_archived_penalties, false);
         populate_list();
         default_focus();
@@ -515,3 +516,7 @@ function handle_retrieve_archived_penalties() {
 function handle_column_save() {
     list.save_columns();
 }
+
+function handle_archive_column_save() {
+    archived_list.save_columns();
+}
index cf8ce64..9495832 100644 (file)
         <vbox flex="0">
             <toolbox flex="1">
                 <toolbar>
+                    <toolbarbutton id="apply_btn" 
+                        command="cmd_save_archived_columns" 
+                        label="&staff.patron_display.penalty.column.archive.save.label;" 
+                        style="-moz-user-focus: normal" />
                     <toolbarspring/>
                     <toolbaritem>
                         <progressmeter id="archived_progress" flex="1" hidden="true" mode="undetermined"/>