At various points in opac_utils.js, there are calls to doLogout() (no parms).
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 13 Apr 2008 18:17:49 +0000 (18:17 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 13 Apr 2008 18:17:49 +0000 (18:17 +0000)
However, Firefox complains that doLogout() is not defined.

The only defined function is doLogout(noredirect) (one parm).

As I can't find any instances of doLogout being called with a parameter,
and I can't see noredirect being used anywhere in the function, the
simplest patch appears to be to just remove the parameter from the prototype.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@9327 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/opac_utils.js

index 2a2da8b..c730e50 100644 (file)
@@ -714,7 +714,7 @@ function doLogin(suppressEvents) {
        return u;
 }
 
-function doLogout(noredirect) {
+function doLogout() {
 
        /* cancel everything else */
        abortAllRequests();