changeset 52:fc4ee9cc587b

new: auto scroll to the last position when de/selecting rows, and add number of selected rows info, in full text search page
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 01 Feb 2016 15:40:41 +0100
parents cf747a960516
children db2088ac1f50
files src/main/webapp/pages/fullTextSearch.jsp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/webapp/pages/fullTextSearch.jsp	Fri Jan 29 11:54:32 2016 +0100
+++ b/src/main/webapp/pages/fullTextSearch.jsp	Mon Feb 01 15:40:41 2016 +0100
@@ -99,7 +99,9 @@
 			//console.log("y: " + y + ", top: " + $("#content_"+id).offset().top + ", offsetInElement: " + offsetInElement);	
 			if (y == undefined) return;
 			
-			$('html,body').animate({scrollTop: $("#content_"+id).offset().top - y + offsetInElement}, 'fast');
+			//$('html,body').animate({scrollTop: $("#content_"+id).offset().top - y + offsetInElement}, 'fast');
+			$('html,body').scrollTop($("#content_"+id).offset().top - y + offsetInElement); 
+			
 		}
 		
 		function highlightKeywords()	// highlight keywords in content column, with class="content"
@@ -156,7 +158,7 @@
 						<input name="bean" type="hidden" value="fullTextSearchBean" /> 
 					<table>
 						<tr>
-							<td>Save the selected <%=sessionBean.getFullTextSearchPage().getSelectedNumOfContent() %> section(s) to table:
+							<td>
 								<input id="fileName" name="fileName" type="text" placeholder="table name"/>
 							</td>
 							<td>