[jopensocial commit] r42 - Compat MySpace.com

0 views
Skip to first unread message

codesite...@google.com

unread,
Apr 13, 2009, 9:59:21 PM4/13/09
to jopen...@googlegroups.com
Author: atsn.ngs
Date: Mon Apr 13 18:48:37 2009
New Revision: 42

Modified:
trunk/src/jopensocial.js
trunk/tests/test.xml

Log:
Compat MySpace.com

Modified: trunk/src/jopensocial.js
==============================================================================
--- trunk/src/jopensocial.js (original)
+++ trunk/src/jopensocial.js Mon Apr 13 18:48:37 2009
@@ -114,7 +114,7 @@
function _getViewObject(view) {
if(!gadgets||!gadgets.views||!gadgets.views.getSupportedViews||!view)
return;
var rtn;
- if(view.match(/^canvas$/i)) view = container.myspace ?
view.toUpperCase() : view.toLowerCase();
+ if(view.match(/^canvas$|^home$|^profile$/i)) view = container.myspace ?
view.toUpperCase() : view.toLowerCase();
$.each(gadgets.views.getSupportedViews(), function(i){
if(this.getName()==view||i==view) {
rtn = this;

Modified: trunk/tests/test.xml
==============================================================================
--- trunk/tests/test.xml (original)
+++ trunk/tests/test.xml Mon Apr 13 18:48:37 2009
@@ -57,8 +57,8 @@
</p>
</form>
<div id="output">&nbsp;</div>
-<script type="text/javascript"
src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js?rnd=2"></script>
-<script type="text/javascript"
src="http://test.ngsdev.org/jopensocial/src/jopensocial.js?rnd=11"></script>
+<script type="text/javascript"
src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js?rnd=39"></script>
+<script type="text/javascript"
src="http://test.ngsdev.org/jopensocial/src/jopensocial.js?rnd=39"></script>
<script type="text/javascript">
function output(t) {
$("#output").html(gadgets.json.stringify(t));

Reply all
Reply to author
Forward
0 new messages