You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by ps...@apache.org on 2011/11/10 13:37:19 UTC

svn commit: r1200297 - in /incubator/wookie/trunk/features: camera/shared/bondi_camera.js oauth/feature.xml wave/feature.xml wookie-ext/feature.xml

Author: psharples
Date: Thu Nov 10 12:37:18 2011
New Revision: 1200297

URL: http://svn.apache.org/viewvc?rev=1200297&view=rev
Log:
Removed hard coded /wookie paths from feature defs

Modified:
    incubator/wookie/trunk/features/camera/shared/bondi_camera.js
    incubator/wookie/trunk/features/oauth/feature.xml
    incubator/wookie/trunk/features/wave/feature.xml
    incubator/wookie/trunk/features/wookie-ext/feature.xml

Modified: incubator/wookie/trunk/features/camera/shared/bondi_camera.js
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/features/camera/shared/bondi_camera.js?rev=1200297&r1=1200296&r2=1200297&view=diff
==============================================================================
--- incubator/wookie/trunk/features/camera/shared/bondi_camera.js (original)
+++ incubator/wookie/trunk/features/camera/shared/bondi_camera.js Thu Nov 10 12:37:18 2011
@@ -22,7 +22,8 @@ webcam = new function webcam(){
     this.takePicture = function(success_callback, error_callback, options){
         this.callback = success_callback;
         this.error = error_callback;
-        tb_show("","/wookie/features/camera/shared/camcanvas.html?TB_iframe=true&height=320&width=335",""); 
+        var pathArray = window.location.pathname.split( '/' );
+        tb_show("","/" + pathArray[1] + "/features/camera/shared/camcanvas.html?TB_iframe=true&height=320&width=335",""); 
     }
     
     this.snapped = function(image){

Modified: incubator/wookie/trunk/features/oauth/feature.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/features/oauth/feature.xml?rev=1200297&r1=1200296&r2=1200297&view=diff
==============================================================================
--- incubator/wookie/trunk/features/oauth/feature.xml (original)
+++ incubator/wookie/trunk/features/oauth/feature.xml Thu Nov 10 12:37:18 2011
@@ -17,6 +17,6 @@
 -->
 <feature>
 	<name>http://oauth.net/2</name>
-	<script src="/wookie/dwr/interface/OAuthConnector.js"/>
+	<script src="dwr/interface/OAuthConnector.js"/>
 	<script src="oauth.js"/>
 </feature>
\ No newline at end of file

Modified: incubator/wookie/trunk/features/wave/feature.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/features/wave/feature.xml?rev=1200297&r1=1200296&r2=1200297&view=diff
==============================================================================
--- incubator/wookie/trunk/features/wave/feature.xml (original)
+++ incubator/wookie/trunk/features/wave/feature.xml Thu Nov 10 12:37:18 2011
@@ -17,6 +17,6 @@
 -->
 <feature>
 	<name>http://wave.google.com</name>
-	<script src="/wookie/dwr/interface/WaveImpl.js"/>
+	<script src="dwr/interface/WaveImpl.js"/>
 	<script src="wave.js"/>
 </feature>
\ No newline at end of file

Modified: incubator/wookie/trunk/features/wookie-ext/feature.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/features/wookie-ext/feature.xml?rev=1200297&r1=1200296&r2=1200297&view=diff
==============================================================================
--- incubator/wookie/trunk/features/wookie-ext/feature.xml (original)
+++ incubator/wookie/trunk/features/wookie-ext/feature.xml Thu Nov 10 12:37:18 2011
@@ -24,6 +24,6 @@
 		For more information, see org.apache.wookie.feature.ext.IWookieExntesionAPI.java
 	 -->
 	<name>http://incubator.apache.org/wookie/ext</name>
-	<script src="/wookie/dwr/interface/WookieImpl.js"/>
+	<script src="dwr/interface/WookieImpl.js"/>
 	<script src="wookie.js"/>
 </feature>
\ No newline at end of file