You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lens.apache.org by am...@apache.org on 2014/11/26 05:16:17 UTC

incubator-lens git commit: LENS:54 : Logout successfully even in case of server errors (Raju Bairishetti via amareshwari)

Repository: incubator-lens
Updated Branches:
  refs/heads/master ab3700641 -> 2c4b5798d


LENS:54 : Logout successfully even in case of server errors (Raju Bairishetti via amareshwari)


Project: http://git-wip-us.apache.org/repos/asf/incubator-lens/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-lens/commit/2c4b5798
Tree: http://git-wip-us.apache.org/repos/asf/incubator-lens/tree/2c4b5798
Diff: http://git-wip-us.apache.org/repos/asf/incubator-lens/diff/2c4b5798

Branch: refs/heads/master
Commit: 2c4b5798d575f3aa9ce8d7551fd8d077b53497b1
Parents: ab37006
Author: Amareshwari Sriramdasu <am...@inmobi.com>
Authored: Wed Nov 26 09:46:08 2014 +0530
Committer: Amareshwari Sriramdasu <am...@inmobi.com>
Committed: Wed Nov 26 09:46:08 2014 +0530

----------------------------------------------------------------------
 lens-server/src/main/webapp/static/js/models/session.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/2c4b5798/lens-server/src/main/webapp/static/js/models/session.js
----------------------------------------------------------------------
diff --git a/lens-server/src/main/webapp/static/js/models/session.js b/lens-server/src/main/webapp/static/js/models/session.js
index 9d0e712..0fac8ec 100644
--- a/lens-server/src/main/webapp/static/js/models/session.js
+++ b/lens-server/src/main/webapp/static/js/models/session.js
@@ -227,10 +227,12 @@ var Session = function() {
                 processData: false,
                 success: function(data) {
                     console.log("successfully logged out");
-                    callback();
                 },
                 error: function(jqXHR, textStatus, errorThrown) {
                     console.log("Error in logout : " + textStatus);
+                },
+                complete: function() {
+                    callback();
                 }
        });
     };