shindig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lind...@apache.org
Subject svn commit: r1149418 - in /shindig/trunk/content/samplecontainer/examples: commoncontainer/cconviews.js embeddedexperiences/AlbumViewer.xml embeddedexperiences/PhotoList.xml media-openGadgets/Media.xml
Date Fri, 22 Jul 2011 00:33:43 GMT
Author: lindner
Date: Fri Jul 22 00:33:42 2011
New Revision: 1149418

URL: http://svn.apache.org/viewvc?rev=1149418&view=rev
Log:
whitespace fixes for last patch

Modified:
    shindig/trunk/content/samplecontainer/examples/commoncontainer/cconviews.js
    shindig/trunk/content/samplecontainer/examples/embeddedexperiences/AlbumViewer.xml
    shindig/trunk/content/samplecontainer/examples/embeddedexperiences/PhotoList.xml
    shindig/trunk/content/samplecontainer/examples/media-openGadgets/Media.xml

Modified: shindig/trunk/content/samplecontainer/examples/commoncontainer/cconviews.js
URL: http://svn.apache.org/viewvc/shindig/trunk/content/samplecontainer/examples/commoncontainer/cconviews.js?rev=1149418&r1=1149417&r2=1149418&view=diff
==============================================================================
--- shindig/trunk/content/samplecontainer/examples/commoncontainer/cconviews.js (original)
+++ shindig/trunk/content/samplecontainer/examples/commoncontainer/cconviews.js Fri Jul 22
00:33:42 2011
@@ -38,7 +38,7 @@ CommonContainer['views'] = CommonContain
  * @return {object} The DOM element to place the GadgetSite in.
  */
 
-CommonContainer.views.createElementForGadget = function(gadgetMetadata, 
+CommonContainer.views.createElementForGadget = function(gadgetMetadata,
         opt_view, opt_viewTarget) {
   var surfaceView = 'default';
   var viewTarget = 'default';

Modified: shindig/trunk/content/samplecontainer/examples/embeddedexperiences/AlbumViewer.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/content/samplecontainer/examples/embeddedexperiences/AlbumViewer.xml?rev=1149418&r1=1149417&r2=1149418&view=diff
==============================================================================
--- shindig/trunk/content/samplecontainer/examples/embeddedexperiences/AlbumViewer.xml (original)
+++ shindig/trunk/content/samplecontainer/examples/embeddedexperiences/AlbumViewer.xml Fri
Jul 22 00:33:42 2011
@@ -50,8 +50,8 @@
 			clear: both;
 		} 	
      </style>
-     
- 
+
+
      <script type="text/javascript">     	
      	function initAlbum(){
      		opensocial.data.getDataContext().registerListener('org.opensocial.ee.context', function(key){
@@ -72,7 +72,7 @@
      	
      	gadgets.util.registerOnLoadHandler(initAlbum);
    	 </script>
-	 
+
 	 <div id="wrapper">
 	 	<div id="header"></div>
 	 	<div id="album"></div>

Modified: shindig/trunk/content/samplecontainer/examples/embeddedexperiences/PhotoList.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/content/samplecontainer/examples/embeddedexperiences/PhotoList.xml?rev=1149418&r1=1149417&r2=1149418&view=diff
==============================================================================
--- shindig/trunk/content/samplecontainer/examples/embeddedexperiences/PhotoList.xml (original)
+++ shindig/trunk/content/samplecontainer/examples/embeddedexperiences/PhotoList.xml Fri Jul
22 00:33:42 2011
@@ -34,27 +34,27 @@
             padding: 2px 2px 2px 2px;
             border: 1px solid black;
         }
-        
+
         #wrapper{
             border: 1px solid black;
         }
-        
+
         #header{
             font-size: 120%;
             padding: 10px 10px 10px 10px;
             color: #0F67A1;
-        }         
-        
+        }
+
         .clear{
             clear: both;
-        }     
+        }
      </style>
-     
- 
-     <script type="text/javascript"> 
-     
+
+
+     <script type="text/javascript">
+
          var currentSite;
-                 
+
          function initAlbum(){
              opensocial.data.getDataContext().registerListener('org.opensocial.ee.context',
function(key){
                  createAlbumHTML(opensocial.data.getDataContext().getDataSet(key));
@@ -72,24 +72,24 @@
              document.getElementById('header').innerHTML = context.albumName;
              document.getElementById("album").innerHTML = result;
          };
-         
+
          gadgets.util.registerOnLoadHandler(initAlbum);
-         
+
          function showPreviewPhoto(index) {
-                  
+
             var eeDataModel = {
                 'gadget' : 'http://localhost:8080/samplecontainer/examples/embeddedexperiences/AlbumViewer.xml',
-                'context' : {              
-                  "albumName": context.albumName, 
+                'context' : {
+                  "albumName": context.albumName,
                   "photoUrls": [context.photoUrls[index]]
               }
             };
-            
-            var navigateCallback = function(site, metadata){currentSite = site; console.log("Nagivate
callback");};  
+
+            var navigateCallback = function(site, metadata){currentSite = site; console.log("Nagivate
callback");};
             var returnCallback = function(returnValue){console.log("Return Value: " + returnValue);};
             gadgets.views.openEmbeddedExperience(returnCallback, navigateCallback, eeDataModel,
{'viewTarget' : 'preview'});
          };
-         
+
          function closePreview(){
             if(currentSite != null){
                 gadgets.views.close(currentSite);
@@ -97,7 +97,7 @@
             return false;
          };
         </script>
-     
+
      <div id="wrapper">
          <div id="header"></div>
          <div id="album"></div>

Modified: shindig/trunk/content/samplecontainer/examples/media-openGadgets/Media.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/content/samplecontainer/examples/media-openGadgets/Media.xml?rev=1149418&r1=1149417&r2=1149418&view=diff
==============================================================================
--- shindig/trunk/content/samplecontainer/examples/media-openGadgets/Media.xml (original)
+++ shindig/trunk/content/samplecontainer/examples/media-openGadgets/Media.xml Fri Jul 22
00:33:42 2011
@@ -1,15 +1,22 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- * Licensed to the Apache Software Foundation (ASF) under one * or more 
-    contributor license agreements. See the NOTICE file * distributed with this 
-    work for additional information * regarding copyright ownership. The ASF 
-    licenses this file * to you under the Apache License, Version 2.0 (the * 
-    "License"); you may not use this file except in compliance * with the License. 
-    You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0

-    * * Unless required by applicable law or agreed to in writing, * software 
-    distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 
-    WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the 
-    License for the * specific language governing permissions and limitations 
-    * under the License. -->
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
 <Module>
     <ModulePrefs title="Albums and MediaItems">
         <Require feature="osapi" />
@@ -23,11 +30,11 @@
                 <!-- Source imports --><script src='http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js'
type='text/javascript' djConfig='parseOnLoad:true, isDebug:true'></script>
                 <script src='Social.js' type='text/javascript'></script>
                 <script src='MediaUIOpenGadgets.js' type='text/javascript'></script>
-                
+
                 <!-- Styling -->
                 <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css"></link>
                 <link rel="stylesheet" type="text/css" href="styles.css">
-                
+
                 <!-- DOJO requires -->
                 <script type='text/javascript'>
                     dojo.require('dijit.form.Button');
@@ -39,14 +46,14 @@
                     dojo.require('dijit.layout.ContentPane');
                     dojo.require('dijit.layout.TabContainer');
                 </script>
-                
+
                 <!-- JavaScript -->
-                <script type="text/javascript"> 
+                <script type="text/javascript">
                 <!-- Entry point to the gadget -->
                     function init() {
                         new MediaUI(new SocialWrapper()).init();
                     }
-                
+
                 <!-- Register entry point -->
                     gadgets.util.registerOnLoadHandler(function() {
                         dojo.addOnLoad(init);
@@ -63,11 +70,11 @@
                 <script src='http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js'
type='text/javascript' djConfig='parseOnLoad:true, isDebug:true'></script>
                 <script src='Social.js' type='text/javascript'></script>
                 <script src='MediaUIOpenGadgets.js' type='text/javascript'></script>
-                
+
                 <!-- Styling -->
                 <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css"></link>
                 <link rel="stylesheet" type="text/css" href="styles.css">
-                
+
                 <!-- DOJO requires -->
                 <script type='text/javascript'>
                     dojo.require('dijit.form.Button');
@@ -79,16 +86,16 @@
                     dojo.require('dijit.layout.ContentPane');
                     dojo.require('dijit.layout.TabContainer');
                 </script>
-                
+
                 <!-- JavaScript -->
-                <script type="text/javascript"> 
+                <script type="text/javascript">
                 <!-- Entry point to the gadget -->
                     function init() {
                         var params = gadgets.views.getParams();
                         var m = new MediaUI(new SocialWrapper());
                         m.openAlbum(params['viewerId'],params['data']);
                     }
-                
+
                 <!-- Register entry point -->
                     gadgets.util.registerOnLoadHandler(function() {
                         dojo.addOnLoad(init);
@@ -105,11 +112,11 @@
                 <script src='http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js'
type='text/javascript' djConfig='parseOnLoad:true, isDebug:true'></script>
                 <script src='Social.js' type='text/javascript'></script>
                 <script src='MediaUIOpenGadgets.js' type='text/javascript'></script>
-                
+
                 <!-- Styling -->
                 <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css"></link>
                 <link rel="stylesheet" type="text/css" href="styles.css">
-                
+
                 <!-- DOJO requires -->
                 <script type='text/javascript'>
                     dojo.require('dijit.form.Button');
@@ -121,16 +128,16 @@
                     dojo.require('dijit.layout.ContentPane');
                     dojo.require('dijit.layout.TabContainer');
                 </script>
-                
+
                 <!-- JavaScript -->
-                <script type="text/javascript"> 
+                <script type="text/javascript">
                 <!-- Entry point to the gadget -->
                     function init() {
                         var params = gadgets.views.getParams();
                         var data = params['data'];
                         new MediaUI(new SocialWrapper()).editAlbum(data);
                     }
-                    
+
                 <!-- Register entry point -->
                     gadgets.util.registerOnLoadHandler(function() {
                         dojo.addOnLoad(init);
@@ -147,11 +154,11 @@
                 <script src='http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js'
type='text/javascript' djConfig='parseOnLoad:true, isDebug:true'></script>
                 <script src='Social.js' type='text/javascript'></script>
                 <script src='MediaUIOpenGadgets.js' type='text/javascript'></script>
-                
+
                 <!-- Styling -->
                 <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css"></link>
                 <link rel="stylesheet" type="text/css" href="styles.css">
-                
+
                 <!-- DOJO requires -->
                 <script type='text/javascript'>
                     dojo.require('dijit.form.Button');
@@ -163,15 +170,15 @@
                     dojo.require('dijit.layout.ContentPane');
                     dojo.require('dijit.layout.TabContainer');
                 </script>
-                
+
                 <!-- JavaScript -->
-                <script type="text/javascript"> 
+                <script type="text/javascript">
                 <!-- Entry point to the gadget -->
                     function init() {
                         var params = gadgets.views.getParams();
                         new MediaUI(new SocialWrapper()).editMediaItem(params['data'].album,params['data'].mediaItem);
                     }
-                
+
                 <!-- Register entry point -->
                     gadgets.util.registerOnLoadHandler(function() {
                         dojo.addOnLoad(init);



Mime
View raw message