Repository: stratos
Updated Branches:
  refs/heads/docker-grouping-merge 2bda49980 -> c974ef791 (forced update)


fix stratos console app login issue


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/c974ef79
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/c974ef79
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/c974ef79

Branch: refs/heads/docker-grouping-merge
Commit: c974ef7911415cac8efc05534e47f0d1331965b1
Parents: 9af8798
Author: Dakshika Jayathilaka <[email protected]>
Authored: Wed Nov 5 15:08:42 2014 +0530
Committer: Dakshika Jayathilaka <[email protected]>
Committed: Wed Nov 5 15:08:42 2014 +0530

----------------------------------------------------------------------
 .../console/util/utility.jag                    | 21 --------------------
 1 file changed, 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/c974ef79/components/org.apache.stratos.manager.console/console/util/utility.jag
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.manager.console/console/util/utility.jag 
b/components/org.apache.stratos.manager.console/console/util/utility.jag
index c75c209..916f265 100644
--- a/components/org.apache.stratos.manager.console/console/util/utility.jag
+++ b/components/org.apache.stratos.manager.console/console/util/utility.jag
@@ -335,17 +335,6 @@ consoleAppUtil = new function(){
            }
         } else {
            session.put("get-status", "Unknown response!");
-        
-        if (response.xhr.status >= 200 && response.xhr.status < 300) { //if 
success
-           session.put("get-status", "succeeded");
-        } else if (response.xhr.status >= 400 && response.xhr.status < 500) { 
//if client error
-           if(response.data != null && response.data != undefined) {
-               session.put("get-status", 
parse(response.data).Error.errorMessage);
-           }
-        } else if (response.xhr.status >= 500 && response.xhr.status < 600) { 
//if server error
-           if(response.data != null && response.data != undefined) {
-               session.put("get-status", response.data); return;
-           }
         }
 
         log.debug("sent is: " + stringify(response));
@@ -426,16 +415,6 @@ consoleAppUtil = new function(){
            }
         } else {
            session.put("deploy-status", "Unknown response!");
-        if (response.xhr.status >= 200 && response.xhr.status < 300) { //if 
success
-           session.put("deploy-status", "succeeded");
-        } else if (response.xhr.status >= 400 && response.xhr.status < 500) { 
//if client error
-           if(response.data != null && response.data != undefined) {
-               session.put("deploy-status", 
parse(response.data).Error.errorMessage);
-           }
-        } else if (response.xhr.status >= 500 && response.xhr.status < 600) { 
//if server error
-           if(response.data != null && response.data != undefined) {         
-               session.put("deploy-status", response.data); return;            
 
-           }
         }
         
         log.debug("sent is: " + stringify(response));

Reply via email to