Browse Source

产品管理提示交互

yangc 8 years ago
parent
commit
4a09bdb72e

+ 7 - 3
src/main/webapp/resources/view/vendor/forstore/vendor_material.html

@@ -2241,9 +2241,13 @@
 
 <script>
 	$(function(){
-		if ($(window).height() < $('.record-line').offset().top + $('.record-line').height()) {
-			$('.standard-tab.table>tbody>tr.batch-tr').addClass('active');
-		}
+		$(document).on('click', function () {
+			if ($(document).scrollTop() + $(window).height() < $('.record-line').offset().top + $('.record-line').height()) {
+				$('.standard-tab.table>tbody>tr.batch-tr').addClass('active')
+			} else {
+				$('.standard-tab.table>tbody>tr.batch-tr').removeClass('active')
+			}
+		})
 		$(window).bind("scroll",function() {
 			if ($(document).scrollTop() + $(window).height() < $('.record-line').offset().top + $('.record-line').height()) {
 				$('.standard-tab.table>tbody>tr.batch-tr').addClass('active')