Author: carlucci
Date: Fri Jun 22 15:30:30 2012
New Revision: 1352928

URL: http://svn.apache.org/viewvc?rev=1352928&view=rev
Log:
RAVE-688: Add function to render OpenSocial gadget in any custom supplied view

Modified:
    
rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave_opensocial.js

Modified: 
rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave_opensocial.js
URL: 
http://svn.apache.org/viewvc/rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave_opensocial.js?rev=1352928&r1=1352927&r2=1352928&view=diff
==============================================================================
--- 
rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave_opensocial.js
 (original)
+++ 
rave/trunk/rave-portal-resources/src/main/webapp/static/script/rave_opensocial.js
 Fri Jun 22 15:30:30 2012
@@ -178,6 +178,10 @@ rave.opensocial = rave.opensocial || (fu
             // display the gadget in custom edit prefs view
             renderGadgetView(rave.opensocial.VIEW_NAMES.PREFERENCES, this);
         };
+        gadget.renderView = function(viewName) {
+            // render the gadget in the view supplied.  This can be used to 
render a gadget in any custom-defined view
+            renderGadgetView(viewName, this);
+        };
 
         // if the gadget has prefences to edit, or has the Preferences view
         // enable the edit prefs menu item


Reply via email to