Add a confirmation dialog popup.
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Ben Shum <bshum@biblio.org>
'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();
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.