You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by li...@apache.org on 2009/12/18 21:20:17 UTC

svn commit: r892368 - in /incubator/shindig/trunk/javascript/samplecontainer: examples/SocialActivitiesWorld.xml examples/SocialHelloWorld.xml samplecontainer.js

Author: lindner
Date: Fri Dec 18 20:20:12 2009
New Revision: 892368

URL: http://svn.apache.org/viewvc?rev=892368&view=rev
Log:
SHINDIG-1147 | Patch from Nuwan Bandara | Fix for reset-all on samplecontainer

Modified:
    incubator/shindig/trunk/javascript/samplecontainer/examples/SocialActivitiesWorld.xml
    incubator/shindig/trunk/javascript/samplecontainer/examples/SocialHelloWorld.xml
    incubator/shindig/trunk/javascript/samplecontainer/samplecontainer.js

Modified: incubator/shindig/trunk/javascript/samplecontainer/examples/SocialActivitiesWorld.xml
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/javascript/samplecontainer/examples/SocialActivitiesWorld.xml?rev=892368&r1=892367&r2=892368&view=diff
==============================================================================
--- incubator/shindig/trunk/javascript/samplecontainer/examples/SocialActivitiesWorld.xml (original)
+++ incubator/shindig/trunk/javascript/samplecontainer/examples/SocialActivitiesWorld.xml Fri Dec 18 20:20:12 2009
@@ -21,6 +21,7 @@
  <ModulePrefs title="Social Activities World"
               icon="http://localhost:8080/gadgets/files/samplecontainer/examples/icon.png">
    <Require feature="opensocial-0.7"></Require>
+     <Require feature="settitle"/>
    <Require feature="dynamic-height"></Require>
  </ModulePrefs>
  <Content type="html">
@@ -117,7 +118,7 @@
 </style>
 
 <script type="text/javascript">
-
+gadgets.window.setTitle('Social Activities World');
 gadgets.util.registerOnLoadHandler(refreshActivities);
 
 function refreshActivities() {

Modified: incubator/shindig/trunk/javascript/samplecontainer/examples/SocialHelloWorld.xml
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/javascript/samplecontainer/examples/SocialHelloWorld.xml?rev=892368&r1=892367&r2=892368&view=diff
==============================================================================
--- incubator/shindig/trunk/javascript/samplecontainer/examples/SocialHelloWorld.xml (original)
+++ incubator/shindig/trunk/javascript/samplecontainer/examples/SocialHelloWorld.xml Fri Dec 18 20:20:12 2009
@@ -23,6 +23,7 @@
               thumbnail="http://localhost:8080/"
               icon="http://localhost:8080/gadgets/files/samplecontainer/examples/icon.png">
    <Require feature="osapi"></Require>
+       <Require feature="settitle"/>
    <Require feature="dynamic-height"></Require>
  </ModulePrefs>
  <Content type="html">
@@ -69,6 +70,7 @@
    </style>
 
    <script type="text/javascript">
+   gadgets.window.setTitle('Social Hello World');
      var hellos = new Array('Hello World', 'Hallo Welt', 'Ciao a tutti', 'Hola mundo',
        '&#1055;&#1086;&#1103;&#1074;&#1083;&#1077;&#1085;&#1080;&#1077; &#1085;&#1072; &#1089;&#1074;&#1077;&#1090;', '&#12371;&#12435;&#12395;&#12385;&#12399;&#19990;&#30028;', '&#20320;&#22909;&#19990;&#30028;', '&#50668;&#47084;&#48516;, &#50504;&#45397;&#54616;&#49464;&#50836;');
      var numberOfStyles = 6;

Modified: incubator/shindig/trunk/javascript/samplecontainer/samplecontainer.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/javascript/samplecontainer/samplecontainer.js?rev=892368&r1=892367&r2=892368&view=diff
==============================================================================
--- incubator/shindig/trunk/javascript/samplecontainer/samplecontainer.js (original)
+++ incubator/shindig/trunk/javascript/samplecontainer/samplecontainer.js Fri Dec 18 20:20:12 2009
@@ -177,7 +177,7 @@
       gadgets.container.gadgets_[gadget].secureToken = escape(generateSecureToken());
     }
     reloadStateFile(function() {
-      gadgets.container.renderGadgets();
+      gadgets.container.refreshGadgets();
     });
   }