Revision: 879
http://treebase.svn.sourceforge.net/treebase/?rev=879&view=rev
Author: hshyket
Date: 2011-05-20 14:08:08 +0000 (Fri, 20 May 2011)
Log Message:
-----------
Fixing issue where javascript would to a post to discard the results, but the results would still be there since it was pulling the parameters from the URL
Modified Paths:
--------------
trunk/treebase-web/src/main/webapp/WEB-INF/pages/search/searchResultsList.jsp
Modified: trunk/treebase-web/src/main/webapp/WEB-INF/pages/search/searchResultsList.jsp
===================================================================
--- trunk/treebase-web/src/main/webapp/WEB-INF/pages/search/searchResultsList.jsp 2011-05-19 21:28:17 UTC (rev 878)
+++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/search/searchResultsList.jsp 2011-05-20 14:08:08 UTC (rev 879)
@@ -43,9 +43,14 @@
<div id="output"></div>
<script type="text/javascript">
-
- function doAction(action) {
+ function doAction(action) {
$('action').value = action;
+ if (!(location.search == "") && action == 'discardResults')
+ {
+ var url = location.href;
+ var url_parts = url.split('?');
+ $('resultsActionForm').writeAttribute('action', url_parts[0]);
+ }
$('resultsActionForm').submit();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|