Repository: rave
Updated Branches:
  refs/heads/master 3f6ce8581 -> 386819677


RAVE-1270 | Allow gadgets that were navigated to to close themselves with 
gadgets.views.close()


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

Branch: refs/heads/master
Commit: 3b3398968ed7ee09c810de434fc7f569168d227d
Parents: aab1719
Author: Stanton Sievers <[email protected]>
Authored: Mon Aug 11 11:20:29 2014 -0400
Committer: Stanton Sievers <[email protected]>
Committed: Mon Aug 11 11:20:29 2014 -0400

----------------------------------------------------------------------
 .../src/main/webapp/static/script/core/rave_opensocial.js       | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/rave/blob/3b339896/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js
----------------------------------------------------------------------
diff --git 
a/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js 
b/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js
index 7dea976..0952f7c 100644
--- 
a/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js
+++ 
b/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js
@@ -148,6 +148,11 @@ define(['underscore', 'core/rave_view_manager', 
'core/rave_api', 'core/rave_open
             //If the element has no ID then it was launched in some secondary 
location.  Destroy the view.
             if(widget._el.id === "") viewManager.destroyView(widget._view);
             widget.render(renderInto, {view: viewName, view_params: 
opt_params, ownerId: opt_ownerId});
+
+            var view = viewManager.getView(viewName);
+            if (view && view.getWidgetSite && view._uid) {
+                view.getWidgetSite().setAttribute('data-rave-view', view._uid);
+            }
         }
 
         function setPref(args, editToken, prefName, prefValue) {

Reply via email to