安装版权说明优化
This commit is contained in:
parent
d658d16edb
commit
24063e9d7d
|
|
@ -47,7 +47,7 @@
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h5 class="modal-title" id="exampleModalLabel">{{ trans('installer::installer_messages.welcome.copyright_title') }}</h5>
|
<h5 class="modal-title" id="exampleModalLabel">{{ trans('installer::installer_messages.welcome.copyright_title') }}</h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body" id="copyright-info">
|
||||||
<p>{{ trans('installer::installer_messages.welcome.copyright_list_1') }}</p>
|
<p>{{ trans('installer::installer_messages.welcome.copyright_list_1') }}</p>
|
||||||
<p>{{ trans('installer::installer_messages.welcome.copyright_list_2') }}</p>
|
<p>{{ trans('installer::installer_messages.welcome.copyright_list_2') }}</p>
|
||||||
<p>{{ trans('installer::installer_messages.welcome.copyright_list_3') }}</p>
|
<p>{{ trans('installer::installer_messages.welcome.copyright_list_3') }}</p>
|
||||||
|
|
@ -239,15 +239,29 @@
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#modal-copyright').modal('show');
|
$('#modal-copyright').modal('show');
|
||||||
|
|
||||||
$('#modal-copyright .modal-body').scroll(function() {
|
var addEvent = (function() {
|
||||||
var bodyHeight = $(this).outerHeight();
|
if (window.addEventListener) {
|
||||||
var nScrollHeight = $(this)[0].scrollHeight;
|
return function(elm, type, handle) {
|
||||||
var nScrollTop = $(this)[0].scrollTop;
|
elm.addEventListener(type, handle, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (Math.round(nScrollTop + bodyHeight) >= nScrollHeight) {
|
if (window.attachEvent) {
|
||||||
|
return function(elm, type, handle) {
|
||||||
|
elm.attachEvent('on' + type, handle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
|
var div = document.getElementById('copyright-info');
|
||||||
|
addEvent(div, 'scroll', function() {
|
||||||
|
var scrollHeight = div.scrollHeight;
|
||||||
|
var scrollTop = div.scrollTop;
|
||||||
|
var height = div.offsetHeight;
|
||||||
|
if ((scrollTop + height) == scrollHeight) {
|
||||||
$('.modal-footer .btn').removeAttr('disabled')
|
$('.modal-footer .btn').removeAttr('disabled')
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
Loading…
Reference in New Issue