You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by sj...@apache.org on 2014/07/25 12:54:08 UTC

[03/12] git commit: Review Comments PR#74

Review Comments PR#74


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

Branch: refs/heads/master
Commit: a8cf8612bef0152ae7b65773986bf817a2abfdfa
Parents: c5cbd24
Author: bhairavi sankar <bh...@gmail.com>
Authored: Fri Jul 18 15:44:07 2014 -0400
Committer: bhairavi sankar <bh...@gmail.com>
Committed: Tue Jul 22 23:20:26 2014 -0400

----------------------------------------------------------------------
 .../src/main/webapp/assets/js/view/home.js      | 21 --------------------
 1 file changed, 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/a8cf8612/usage/jsgui/src/main/webapp/assets/js/view/home.js
----------------------------------------------------------------------
diff --git a/usage/jsgui/src/main/webapp/assets/js/view/home.js b/usage/jsgui/src/main/webapp/assets/js/view/home.js
index 4b883b7..3552d73 100644
--- a/usage/jsgui/src/main/webapp/assets/js/view/home.js
+++ b/usage/jsgui/src/main/webapp/assets/js/view/home.js
@@ -44,11 +44,9 @@ define([
         
         initialize:function () {
             var that = this
-            
             this.$el.html(_.template(ApplicationsHtml, {} ))
             $(".nav1").removeClass("active");
             $(".nav1_home").addClass("active");
-            this.getUser();
             this._appViews = {}
             this.summariesView = new HomeView.HomeSummariesView({
                 applications:this.collection,
@@ -175,25 +173,6 @@ define([
                     console.debug(data);
                 }
             });
-        },
-        
-        getUser: function() {     	
-        $.ajax({
-                type: "GET",
-                url: "/v1/server/user",
-                contentType: "application/json",
-                dataType: "text",
-                success: function(data) {
-                    console.log("Successfully fetched user details");
-                    if(data!=null){
-                    $('#user').append(data);
-                    }
-                },
-                error: function(data) {
-                    console.error("ERROR fetching user details");
-                    console.debug(data);
-                }
-            });
         }
     })