From: Jeff Godin Date: Tue, 25 Jun 2013 20:03:49 +0000 (-0400) Subject: Make deactivation of card optional X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2e12483c03f88e6132aa6ca416b8919328fa1f6e;p=evergreen%2Ftadl.git Make deactivation of card optional Make deactivation of current card optional when using Replace Barcode function. Signed-off-by: Jeff Godin --- diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index ced646fbae..3594ca33bf 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -575,8 +575,12 @@ function replaceCardHandler() { // pull old card off the cards list so we don't have a dupe sitting in there if (patron.cards().length > 0) { var old = patron.cards().filter(function(c){return (c.id() == patron.card().id())})[0]; - old.active('f'); - old.ischanged(1); + /* TADL Customization */ + var deactivate = confirm('Deactivate the original card?'); + if (deactivate) { + old.active('f'); + old.ischanged(1); + } } var newc = new fieldmapper.ac();