From: erickson Date: Fri, 28 Jul 2006 15:45:40 +0000 (+0000) Subject: cancel reloads existing patron X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=271635cfb4a35ee8f6151afd953e883fd12408de;p=Evergreen.git cancel reloads existing patron git-svn-id: svn://svn.open-ils.org/ILS/trunk@5154 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/ue.js b/Open-ILS/xul/staff_client/server/patron/ue.js index b8dd870ea5..09236d4c87 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue.js +++ b/Open-ILS/xul/staff_client/server/patron/ue.js @@ -458,6 +458,9 @@ function uEditCancel() { var href = location.href; href = href.replace(/\&?usr=\d+/, ''); href = href.replace(/\&?clone=\d+/, ''); + var id = cgi.param('usr') + /* reload the current user if available */ + if( id ) href += "?usr=" + id; location.href = href; }