You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by zh...@apache.org on 2008/03/04 21:15:04 UTC

svn commit: r633618 - in /incubator/shindig/trunk: config/syndicator.js features/features.txt features/flash/flash.js features/tabs/tabs.js javascript/container/sample4.html javascript/container/sample5.html javascript/container/sample7.html

Author: zhen
Date: Tue Mar  4 12:15:03 2008
New Revision: 633618

URL: http://svn.apache.org/viewvc?rev=633618&view=rev
Log:
Fixed default rpc relay url for sample containers.


Modified:
    incubator/shindig/trunk/config/syndicator.js
    incubator/shindig/trunk/features/features.txt
    incubator/shindig/trunk/features/flash/flash.js
    incubator/shindig/trunk/features/tabs/tabs.js
    incubator/shindig/trunk/javascript/container/sample4.html
    incubator/shindig/trunk/javascript/container/sample5.html
    incubator/shindig/trunk/javascript/container/sample7.html

Modified: incubator/shindig/trunk/config/syndicator.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/config/syndicator.js?rev=633618&r1=633617&r2=633618&view=diff
==============================================================================
--- incubator/shindig/trunk/config/syndicator.js (original)
+++ incubator/shindig/trunk/config/syndicator.js Tue Mar  4 12:15:03 2008
@@ -73,7 +73,7 @@
   	// parameter if it passes input validation and is not null.
     // This should never be on the same host in a production environment!
     // Only use this for TESTING!
-    "parentRelayUrl" : "files/container/rpc_relay.html",
+    "parentRelayUrl" : "gadgets/files/container/rpc_relay.html",
 
     // If true, this will use the legacy ifpc wire format when making rpc
     // requests.

Modified: incubator/shindig/trunk/features/features.txt
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/features.txt?rev=633618&r1=633617&r2=633618&view=diff
==============================================================================
--- incubator/shindig/trunk/features/features.txt (original)
+++ incubator/shindig/trunk/features/features.txt Tue Mar  4 12:15:03 2008
@@ -15,4 +15,5 @@
 features/settitle/feature.xml
 features/skins/feature.xml
 features/tabs/feature.xml
+features/drag/feature.xml
 features/views/feature.xml

Modified: incubator/shindig/trunk/features/flash/flash.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/flash/flash.js?rev=633618&r1=633617&r2=633618&view=diff
==============================================================================
--- incubator/shindig/trunk/features/flash/flash.js (original)
+++ incubator/shindig/trunk/features/flash/flash.js Tue Mar  4 12:15:03 2008
@@ -65,7 +65,6 @@
  * @param {String} swfUrl SWF URL.
  * @param {String | Object} swfContainer The id or object reference of an
  *     existing html container element.
- * @param {Number} swfVersion Minimal Flash Player version required.
  * @param {Object} opt_params An optional object that may contain any valid html
  *     parameter. All attributes will be passed through to the flash movie on
  *     creation.

Modified: incubator/shindig/trunk/features/tabs/tabs.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/tabs/tabs.js?rev=633618&r1=633617&r2=633618&view=diff
==============================================================================
--- incubator/shindig/trunk/features/tabs/tabs.js (original)
+++ incubator/shindig/trunk/features/tabs/tabs.js Tue Mar  4 12:15:03 2008
@@ -190,11 +190,6 @@
  * @return {String} DOM id of the tab container.
  */
 gadgets.TabSet.prototype.addTab = function(tabName, opt_params) {
-  // Legacy support
-  if (typeof opt_params === 'string') {
-    opt_params = {contentContainer: arguments[1], callback: arguments[2]};
-  }
-
   var params = opt_params || {};
 
   var tabIndex = -1;
@@ -639,3 +634,14 @@
   return this.addTab(tabName, {callback: callback});
 };
 
+(function(){
+  var addTab_ = _IG_Tabs.prototype.addTab;
+  _IG_Tabs.prototype.addTab = function(tabName) {
+    if (typeof arguments[1] === 'string') {
+      addTab_.call(this, tabName,
+                   {contentContainer: arguments[1], callback: arguments[2]});
+    } else {
+      addTab_.apply(this, arguments);
+    }
+  };
+})();

Modified: incubator/shindig/trunk/javascript/container/sample4.html
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/javascript/container/sample4.html?rev=633618&r1=633617&r2=633618&view=diff
==============================================================================
--- incubator/shindig/trunk/javascript/container/sample4.html (original)
+++ incubator/shindig/trunk/javascript/container/sample4.html Tue Mar  4 12:15:03 2008
@@ -14,6 +14,7 @@
   gadgets.container.layoutManager =
       new gadgets.FloatLeftLayoutManager('gadget-parent');
 
+  gadgets.container.setParentUrl("http://" + document.location.host + '/');
   gadgets.container.addGadget(
       gadgets.container.createGadget({specUrl: specUrl0}));
 };

Modified: incubator/shindig/trunk/javascript/container/sample5.html
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/javascript/container/sample5.html?rev=633618&r1=633617&r2=633618&view=diff
==============================================================================
--- incubator/shindig/trunk/javascript/container/sample5.html (original)
+++ incubator/shindig/trunk/javascript/container/sample5.html Tue Mar  4 12:15:03 2008
@@ -14,6 +14,7 @@
   gadgets.container.layoutManager =
       new gadgets.FloatLeftLayoutManager('gadget-parent');
 
+  gadgets.container.setParentUrl("http://" + document.location.host + '/');
   var gadget = gadgets.container.createGadget({specUrl: specUrl0});
   gadgets.container.addGadget(gadget);
 };

Modified: incubator/shindig/trunk/javascript/container/sample7.html
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/javascript/container/sample7.html?rev=633618&r1=633617&r2=633618&view=diff
==============================================================================
--- incubator/shindig/trunk/javascript/container/sample7.html (original)
+++ incubator/shindig/trunk/javascript/container/sample7.html Tue Mar  4 12:15:03 2008
@@ -14,6 +14,7 @@
   gadgets.container.layoutManager =
       new gadgets.FloatLeftLayoutManager('gadget-parent');
 
+  gadgets.container.setParentUrl("http://" + document.location.host + '/');
   var gadget = gadgets.container.createGadget({specUrl: specUrl0});
   gadgets.container.addGadget(gadget);
 };