From 3af5774483ad29508991d70c035be70a31667c09 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 3 Aug 2006 20:09:37 +0000 Subject: [PATCH] max 99 noncat checkouts in one action git-svn-id: svn://svn.open-ils.org/ILS/trunk@5262 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/checkout.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index a9ddab3cf6..07b0910f87 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -126,7 +126,10 @@ circ.checkout.prototype = { if (r) { count = parseInt(r); if (count > 0) { - if (count > 20) { + if (count > 99) { + obj.error.yns_alert('You tried to circulate ' + count + ' ' + obj.data.hash.cnct[ params.noncat_type].name() + '. The maximum is 99 per action.','Non-cataloged Circulation','OK',null,null,'Check here to confirm this message.'); + return; + } else if (count > 20) { r = obj.error.yns_alert('Are you sure you want to circulate ' + count + ' ' + obj.data.hash.cnct[ params.noncat_type].name() + '?','Non-cataloged Circulation','Yes','No',null,'Check here to confirm this message.'); if (r != 0) return; } -- 2.43.2