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 su...@apache.org on 2010/09/21 19:00:16 UTC

svn commit: r999544 - /incubator/photark/trunk/photark-ui/src/main/webapp/js/gallery.js

Author: suho
Date: Tue Sep 21 19:00:16 2010
New Revision: 999544

URL: http://svn.apache.org/viewvc?rev=999544&view=rev
Log:
PHOTARK-55-fixing the issues, showing the image path as search results.

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

Modified: incubator/photark/trunk/photark-ui/src/main/webapp/js/gallery.js
URL: http://svn.apache.org/viewvc/incubator/photark/trunk/photark-ui/src/main/webapp/js/gallery.js?rev=999544&r1=999543&r2=999544&view=diff
==============================================================================
--- incubator/photark/trunk/photark-ui/src/main/webapp/js/gallery.js (original)
+++ incubator/photark/trunk/photark-ui/src/main/webapp/js/gallery.js Tue Sep 21 19:00:16 2010
@@ -167,19 +167,19 @@ function searchResponse(items, exception
 	        var aux = items[i*5 + j].split('/', 2);
 	        var albumName = aux[0];
 	        var imageName = aux[1];
-	        var img = document.createElement("img");
-	        img.src = (window.location.href).replace("admin/upload.html", "") + "gallery/" +items[i*5 + j ];
-	        img['class'] = "slideImage";
-	        img.width=100;
-	        //img.height=10;
-	        img.ondragstart = function () { return false; };
-	        img.onselectstart = function () { return false; };
-	        img.onconstextmenu = function () { return false; };
-	        img.alt = items[i*5 + j];
-	        var a = document.createElement("a");
-	        a.href = "javascript:initializeAlbum('" + albumName + "', '" + imageName + "')";
-	        a.appendChild(img);
-	        column.appendChild(a);
+//	        var img = document.createElement("img");
+//	        img.src = (window.location.href).replace("admin/upload.html", "") + "gallery/" +items[i*5 + j ];
+//	        img['class'] = "slideImage";
+//	        img.width=100;
+//	        //img.height=10;
+//	        img.ondragstart = function () { return false; };
+//	        img.onselectstart = function () { return false; };
+//	        img.onconstextmenu = function () { return false; };
+//	        img.alt = items[i*5 + j];
+//	        var a = document.createElement("a");
+//	        a.href = "javascript:initializeAlbum('" + albumName + "', '" + imageName + "')";
+//	        a.appendChild(img);
+	        column.innerHTML= "<a href=\"javascript:initializeAlbum('" + albumName + "', '" + imageName + "')\">"+albumName+"/"+imageName+"</a>";
 
 
   		 }