You are viewing a plain text version of this content. The canonical link for it is here.
Posted to photark-commits@incubator.apache.org by av...@apache.org on 2010/02/12 17:53:43 UTC

svn commit: r909531 - /incubator/photark/trunk/photark-ui/src/main/webapp/gallery.html

Author: avd
Date: Fri Feb 12 17:53:42 2010
New Revision: 909531

URL: http://svn.apache.org/viewvc?rev=909531&view=rev
Log:
Images retrieved using ImageDisplayer

Modified:
    incubator/photark/trunk/photark-ui/src/main/webapp/gallery.html

Modified: incubator/photark/trunk/photark-ui/src/main/webapp/gallery.html
URL: http://svn.apache.org/viewvc/incubator/photark/trunk/photark-ui/src/main/webapp/gallery.html?rev=909531&r1=909530&r2=909531&view=diff
==============================================================================
--- incubator/photark/trunk/photark-ui/src/main/webapp/gallery.html (original)
+++ incubator/photark/trunk/photark-ui/src/main/webapp/gallery.html Fri Feb 12 17:53:42 2010
@@ -73,7 +73,6 @@
 
 		for(i=0; i< galleryAlbums.length; i++)
 		{
-			console.log("galleryAlbums[i].name:"+galleryAlbums[i].name);
 			gallery.getAlbumCover(galleryAlbums[i].name).addCallback(gallery_getAlbumCoverResponse);
 		}
 	}
@@ -104,7 +103,7 @@
 			
 				var albumName = galleryAlbums[i].name;
 				var img = document.createElement("img");
-				img.src = "gallery/" + albumName + "/" + albumCovers[i];
+				img.src = window.location.href + "ImageDisplayer/"+ albumName +"/" + albumCovers[i];
 				var img_html = "<img src=" + img.src + " class=\"slideImage\" height=25% width=25% ondragstart=\"return false\" onselectstart=\"return false\" oncontextmenu=\"return false\" galleryimg=\"no\" usemap=\"#imagemap\" alt=\"\"/>";
 				var html = "<a href=\"javascript:initializeAlbum('" + albumName + "')\">" + img_html + "</a>";
 				column.innerHTML = html;
@@ -164,10 +163,10 @@
 	        document.getElementById("albumImage").width=this.width;
 	        document.getElementById("albumImage").height=this.height;
 	    }
-	    img.src = "gallery/" + albumName + "/" + albumItems[albumPos];
+	    img.src = window.location.href + "ImageDisplayer/"+ this.albumName +"/" + albumItems[albumPos];
 	    return false;
 	}
-
+	
 	function goNext() {
 		if(albumPos < albumItems.length - 1) {
 			albumPos++;