From 0611ae03fe6a16a98484f80e4a81e85aab4ff14b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 29 Oct 2014 17:10:30 -0400 Subject: [PATCH] added a boolean check to g.stash_and_close in update_items.js, added the boolean to be passed by the save button, and added some localization to cat.properties Cross-port: 1c2cd32 --- Open-ILS/xul/staff_client/server/cat/update_items.js | 6 +++++- Open-ILS/xul/staff_client/server/cat/update_items.xul | 5 +++++ Open-ILS/xul/staff_client/server/locale/en-US/cat.properties | 3 ++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/update_items.js b/Open-ILS/xul/staff_client/server/cat/update_items.js index dc11233e2a..585077d9f4 100644 --- a/Open-ILS/xul/staff_client/server/cat/update_items.js +++ b/Open-ILS/xul/staff_client/server/cat/update_items.js @@ -380,6 +380,7 @@ g.load_lineitem = function(raw_lineitem_data){ g.set_attr('EditThenCreate','label','staff.cat.update_items.edit_then_rebarcode.btn.label'); g.set_attr('EditThenCreate','accesskey','staff.cat.volume_copy_creator.edit_then_rebarcode.btn.accesskey'); + g.set_attr('CreateWithDefaultsNoClose','label','staff.cat.volume_copy_creator.rebarcodenoclose.btn.label'); g.set_attr('CreateWithDefaults','label','staff.cat.volume_copy_creator.rebarcode.btn.label'); g.set_attr('CreateWithDefaults','accesskey','staff.cat.volume_copy_creator.rebarcode.btn.accesskey'); g.set_attr('Create','label','staff.cat.volume_copy_creator.rebarcode.btn.label'); @@ -1063,7 +1064,7 @@ g.gather_copies = function() { } } -g.stash_and_close = function(param) { +g.stash_and_close = function(param, keepopen) { oils_unlock_page(); @@ -1126,6 +1127,9 @@ g.stash_and_close = function(param) { } var dont_close = false; + if (keepopen == true){ + dont_close = true; + } var label_editor_func; diff --git a/Open-ILS/xul/staff_client/server/cat/update_items.xul b/Open-ILS/xul/staff_client/server/cat/update_items.xul index 3646d2481b..f5af9e778e 100644 --- a/Open-ILS/xul/staff_client/server/cat/update_items.xul +++ b/Open-ILS/xul/staff_client/server/cat/update_items.xul @@ -69,6 +69,10 @@