LP969312: No warning for Delete All from Catalog in Copy Buckets
authorPasi Kallinen <pasi.kallinen@pttk.fi>
Tue, 28 May 2013 17:18:06 +0000 (20:18 +0300)
committerBen Shum <bshum@biblio.org>
Tue, 21 Jan 2014 18:49:16 +0000 (13:49 -0500)
Add a confirmation dialog popup.

Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/xul/staff_client/server/cat/copy_buckets.js
Open-ILS/xul/staff_client/server/locale/en-US/cat.properties

index 3e470ed..1bf6212 100644 (file)
@@ -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();
index ef4772d..d694f2e 100644 (file)
@@ -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.