From cdc1468d78ef1d94233b8427c1dbd2f93f0109c1 Mon Sep 17 00:00:00 2001 From: pines Date: Thu, 14 Sep 2006 19:44:23 +0000 Subject: [PATCH] blank for barcode not allowed git-svn-id: svn://svn.open-ils.org/ILS/trunk@6108 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/util.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/util.js b/Open-ILS/xul/staff_client/server/cat/util.js index 2901bf6c22..32416831f5 100644 --- a/Open-ILS/xul/staff_client/server/cat/util.js +++ b/Open-ILS/xul/staff_client/server/cat/util.js @@ -27,6 +27,10 @@ cat.util.replace_barcode = function(old_bc) { if (!copy) throw(copy); var new_bc = window.prompt('Enter the replacement barcode for the copy with barcode ' + old_bc + ':','','Replace Barcode'); + if (!new_bc) { + alert('Rename aborted. Blank for barcode not allowed.'); + return; + } var test = network.simple_request('FM_ACP_RETRIEVE_VIA_BARCODE',[ ses(), new_bc ]); if (typeof test.ilsevent == 'undefined') { -- 2.11.0