Fix manual logout of EG when OD token expires
authorSteven Chan <steven3416@gmail.com>
Sun, 31 Aug 2014 17:24:05 +0000 (10:24 -0700)
committerSteven Chan <steven3416@gmail.com>
Sun, 31 Aug 2014 17:24:05 +0000 (10:24 -0700)
Signed-off-by: Steven Chan <steven3416@gmail.com>
src/overdrive.coffee

index f026669..d84a21a 100644 (file)
@@ -109,7 +109,7 @@ require [
                                # token seems to have expired
                                'od.logout': (ev, x) ->
                                        if x is 'od'
-                                               $('#logout_link').trigger 'click' if logged_in
+                                               window.location.replace '/eg/opac/logout' if logged_in
 
                'opac\/myopac': ( this_page = page_name() ) ->