cancel reloads existing patron
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 28 Jul 2006 15:45:40 +0000 (15:45 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 28 Jul 2006 15:45:40 +0000 (15:45 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5154 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/ue.js

index b8dd870..09236d4 100644 (file)
@@ -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;
 }