brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject brooklyn-ui git commit: comment about refreshes
Date Wed, 24 Feb 2016 18:36:37 GMT
Repository: brooklyn-ui
Updated Branches:
  refs/heads/master a4111a762 -> 6e0273975


comment about refreshes


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

Branch: refs/heads/master
Commit: 6e0273975e5fe66c8bf8aeed1cda651682a384ba
Parents: a4111a7
Author: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Authored: Wed Feb 24 10:36:22 2016 -0800
Committer: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Committed: Wed Feb 24 10:36:22 2016 -0800

----------------------------------------------------------------------
 src/main/webapp/assets/js/view/editor.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/6e027397/src/main/webapp/assets/js/view/editor.js
----------------------------------------------------------------------
diff --git a/src/main/webapp/assets/js/view/editor.js b/src/main/webapp/assets/js/view/editor.js
index 07f68c0..83200df 100644
--- a/src/main/webapp/assets/js/view/editor.js
+++ b/src/main/webapp/assets/js/view/editor.js
@@ -296,9 +296,10 @@ define([
             if(succeeded){
                 log("Submit [succeeded] ... redirecting back to " + type);
                 if(type && type === 'catalog'){
-                    Backbone.history.navigate('v1/catalog' ,{trigger: true});
+                    Backbone.history.navigate('v1/catalog', {trigger: true});
                 }else{
-                    Backbone.history.navigate('v1/home' ,{trigger: true});
+                    // no need to refresh apps (this.collection) because homePage route does
that
+                    Backbone.history.navigate('v1/home', {trigger: true});
                 }
             }else{
                 log("Submit [failed] ... " + data.responseText);


Mime
View raw message