Repository: stratos Updated Branches: refs/heads/docker-grouping-merge 2bda49980 -> 9fa74f2db
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/9fa74f2d Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/9fa74f2d Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/9fa74f2d Branch: refs/heads/docker-grouping-merge Commit: 9fa74f2dbd73c39fc9df56b350abc15545657c96 Parents: 2bda499 Author: Dakshika Jayathilaka <[email protected]> Authored: Wed Nov 5 15:08:42 2014 +0530 Committer: lasinducharith <[email protected]> Committed: Wed Nov 5 15:39:21 2014 +0530 ---------------------------------------------------------------------- .../console/util/utility.jag | 21 -------------------- 1 file changed, 21 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/9fa74f2d/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));
