added autoscroll
这个提交包含在:
父节点
ecc6b9110c
当前提交
43f6575aec
共有 1 个文件被更改,包括 15 次插入 和 1 次删除
|
|
@ -3067,7 +3067,7 @@ function viewEqsl(picture, callsign) {
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if (($this->uri->segment(1) == "user") && ($this->uri->segment(2) == "edit")) { ?>
|
<?php if ($this->uri->segment(1) == "user") { ?>
|
||||||
<!-- [MAP Custom] select list with icons -->
|
<!-- [MAP Custom] select list with icons -->
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
@ -3088,6 +3088,20 @@ function viewEqsl(picture, callsign) {
|
||||||
}
|
}
|
||||||
$('.icon_selectBox_data[data-boxcontent="'+boxcontent+'"]').hide();
|
$('.icon_selectBox_data[data-boxcontent="'+boxcontent+'"]').hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.collapse').on('shown.bs.collapse', function(e) {
|
||||||
|
var $card = $(this).closest('.accordion-item');
|
||||||
|
var $open = $($(this).data('parent')).find('.collapse.show');
|
||||||
|
|
||||||
|
var additionalOffset = 0;
|
||||||
|
if($card.prevAll().filter($open.closest('.accordion-item')).length !== 0)
|
||||||
|
{
|
||||||
|
additionalOffset = $open.height();
|
||||||
|
}
|
||||||
|
$('html,body').animate({
|
||||||
|
scrollTop: $card.offset().top - additionalOffset
|
||||||
|
}, 300);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用