From a8cb33092ae4e0424c904359e255ebdb7807881c Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 28 May 2013 20:18:06 +0300 Subject: [PATCH] LP969312: No warning for Delete All from Catalog in Copy Buckets Add a confirmation dialog popup. Signed-off-by: Pasi Kallinen Signed-off-by: Ben Shum --- Open-ILS/xul/staff_client/server/cat/copy_buckets.js | 4 ++++ Open-ILS/xul/staff_client/server/locale/en-US/cat.properties | 1 + 2 files changed, 5 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_buckets.js b/Open-ILS/xul/staff_client/server/cat/copy_buckets.js index 3e470ed4fe..1bf6212398 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_buckets.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_buckets.js @@ -461,6 +461,10 @@ cat.copy_buckets.prototype = { 'copy_buckets_batch_copy_delete' : [ ['command'], function() { + + var conf = window.confirm($('catStrings').getString('staff.cat.copy_buckets.copy_buckets_batch_copy_delete.confirm')); + if (!conf) return; + try { obj.list2.select_all(); diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties b/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties index ef4772d8aa..d694f2ede1 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties @@ -96,6 +96,7 @@ staff.cat.copy_buckets.menulist.render.retrieve_bucket=Retrieve shared bucket... staff.cat.copy_buckets.menulist.change_bucket.prompt=Enter bucket number: staff.cat.copy_buckets.menulist.change_bucket.undefined=Could not find a bucket with ID = %1$s staff.cat.copy_buckets.menulist.change_bucket.error=Error retrieving bucket. Did you use a valid bucket id? +staff.cat.copy_buckets.copy_buckets_batch_copy_delete.confirm=Are you sure you want to delete all items in bucket from catalog? staff.cat.copy_buckets.copy_buckets_add.error=Addition likely failed. staff.cat.copy_buckets.copy_buckets_sel_add.error=Addition likely failed. staff.cat.copy_buckets.copy_buckets_delete_item.error=Deletion likely failed. -- 2.11.0