You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by mf...@apache.org on 2014/08/12 23:03:26 UTC
[1/2] git commit: RAVE-1270 | Allow gadgets that were navigated to to
close themselves with gadgets.views.close()
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 <ss...@w2odigital.com>
Authored: Mon Aug 11 11:20:29 2014 -0400
Committer: Stanton Sievers <ss...@w2odigital.com>
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) {
[2/2] git commit: Merge PR#14 from 'sieverssj/RAVE-1270'
Posted by mf...@apache.org.
Merge PR#14 from 'sieverssj/RAVE-1270'
Project: http://git-wip-us.apache.org/repos/asf/rave/repo
Commit: http://git-wip-us.apache.org/repos/asf/rave/commit/38681967
Tree: http://git-wip-us.apache.org/repos/asf/rave/tree/38681967
Diff: http://git-wip-us.apache.org/repos/asf/rave/diff/38681967
Branch: refs/heads/master
Commit: 386819677e8bd2a65b8bbdb797007a93b833920e
Parents: 3f6ce85 3b33989
Author: Matt Franklin <mf...@apache.org>
Authored: Tue Aug 12 16:00:33 2014 -0500
Committer: Matt Franklin <mf...@apache.org>
Committed: Tue Aug 12 16:00:33 2014 -0500
----------------------------------------------------------------------
.../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/38681967/rave-portal-resources/src/main/webapp/static/script/core/rave_opensocial.js
----------------------------------------------------------------------