From 1d07afeb4f646a4cec5bbab0e52545f7fd87b945 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Mon, 11 Apr 2016 10:56:01 -0700 Subject: [PATCH] CAT-55 Save Patron Message Columns Add Locale line for "Save Columns" in patron messages. Add Save Column command to standing_penalties xul. Add function to standing_penalties js to handle saving columns. Signed-off-by: Kyle Huckins 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 | 1 + Open-ILS/xul/staff_client/server/patron/standing_penalties.js | 5 +++++ Open-ILS/xul/staff_client/server/patron/standing_penalties.xul | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 032339efea..f10f076d27 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -1601,6 +1601,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/patron/standing_penalties.js b/Open-ILS/xul/staff_client/server/patron/standing_penalties.js index de2f3a0b6b..3afff57f20 100644 --- a/Open-ILS/xul/staff_client/server/patron/standing_penalties.js +++ b/Open-ILS/xul/staff_client/server/patron/standing_penalties.js @@ -35,6 +35,7 @@ function penalty_init() { window.standing_penalties_event_listeners.add(document.getElementById('cmd_remove_penalty'), 'command', handle_remove_penalty, false); 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_retrieve_archived_penalties'), 'command', handle_retrieve_archived_penalties, false); populate_list(); default_focus(); @@ -510,3 +511,7 @@ function handle_retrieve_archived_penalties() { if (error) error.standard_unexpected_error_alert(err_prefix,E); else alert(err_prefix + E); } } + +function handle_column_save() { + list.save_columns(); +} diff --git a/Open-ILS/xul/staff_client/server/patron/standing_penalties.xul b/Open-ILS/xul/staff_client/server/patron/standing_penalties.xul index 9476116178..cf8ce647e6 100644 --- a/Open-ILS/xul/staff_client/server/patron/standing_penalties.xul +++ b/Open-ILS/xul/staff_client/server/patron/standing_penalties.xul @@ -42,6 +42,8 @@ + + @@ -79,6 +81,8 @@ + + @@ -120,6 +124,8 @@ + + -- 2.11.0