svn commit: samba-web r730 - in trunk/news/js: .

deryck at samba.org deryck at samba.org
Sat Jul 2 03:32:06 GMT 2005


Author: deryck
Date: 2005-07-02 03:32:05 +0000 (Sat, 02 Jul 2005)
New Revision: 730

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba-web&rev=730

Log:
Be consistent and redirect to the same url.

deryck

Modified:
   trunk/news/js/searchEngine.js


Changeset:
Modified: trunk/news/js/searchEngine.js
===================================================================
--- trunk/news/js/searchEngine.js	2005-07-02 01:44:08 UTC (rev 729)
+++ trunk/news/js/searchEngine.js	2005-07-02 03:32:05 UTC (rev 730)
@@ -302,11 +302,7 @@
 
 	setSessionCookie('query', query);
 
-	if (document.location.href.indexOf('results') > -1) {
-		document.location.href = document.location.href;
-	} else {
-		document.location.href += 'results.html';
-	}
+	document.location.href = host + 'samba/news/results.html';
 }
 
 function openResult(url)



More information about the samba-cvs mailing list