mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-27 09:19:15 +08:00
[Web] Reponsive: Scroll faster
This commit is contained in:
parent
dfc8c95a54
commit
bdafb7ab2f
@ -243,7 +243,7 @@ $(document).ready(function() {
|
|||||||
if ($(htmlResponse).find('span').hasClass('text-success')) {
|
if ($(htmlResponse).find('span').hasClass('text-success')) {
|
||||||
$('#triggerRestartContainer').html('<i class="bi bi-check-lg"></i> ');
|
$('#triggerRestartContainer').html('<i class="bi bi-check-lg"></i> ');
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
$('#RestartContainer').modal('toggle');
|
$('#RestartContainer').modal('toggle');
|
||||||
window.location = window.location.href.split("#")[0];
|
window.location = window.location.href.split("#")[0];
|
||||||
}, 1200);
|
}, 1200);
|
||||||
} else {
|
} else {
|
||||||
@ -252,7 +252,7 @@ $(document).ready(function() {
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
// responsive tabs
|
// responsive tabs
|
||||||
$('.responsive-tabs').tabCollapse({
|
$('.responsive-tabs').tabCollapse({
|
||||||
tabsClass: 'hidden-xs',
|
tabsClass: 'hidden-xs',
|
||||||
@ -260,14 +260,12 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
$(document).on("shown.bs.collapse shown.bs.tab", function (e) {
|
$(document).on("shown.bs.collapse shown.bs.tab", function (e) {
|
||||||
var target = $(e.target);
|
var target = $(e.target);
|
||||||
|
|
||||||
if($(window).width() <= 767) {
|
if($(window).width() <= 767) {
|
||||||
var offset = target.offset().top - 112;
|
var offset = target.offset().top - 112;
|
||||||
$("html, body").stop().animate({
|
$("html, body").stop().animate({
|
||||||
scrollTop: offset
|
scrollTop: offset
|
||||||
}, 300);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(target.hasClass('panel-collapse')){
|
if(target.hasClass('panel-collapse')){
|
||||||
var id = e.target.id.replace(/-collapse$/g, '');
|
var id = e.target.id.replace(/-collapse$/g, '');
|
||||||
if(id){
|
if(id){
|
||||||
|
Loading…
Reference in New Issue
Block a user