fix for Cancel in patron editor for existing patron
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 12 Mar 2009 16:21:19 +0000 (16:21 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 12 Mar 2009 16:21:19 +0000 (16:21 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4_0@12493 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 8ab42d2..5333332 100644 (file)
@@ -638,7 +638,7 @@ function uEditCancel() {
        if (xulG) if (xulG.usr) id = xulG.usr;
        if (xulG) if (xulG.params) if (xulG.params.usr) id = xulG.params.usr;
        /* reload the current user if available */
-       if( id ) href += "&usr=" + id;
+       if( id ) href += (href.match(/\?/) ? "&" : "?") + "usr=" + id;
        location.href = href;
 }