|
|
@@ -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')
|