"Open the tab defined in the URL" compatibility
- Better compatibility by not using ``` - If page is scrollable, prevent jumping down past the tabs
This commit is contained in:
parent
45f68cbf39
commit
3de1d3113b
@ -288,4 +288,4 @@ $(document).ready(function() {
|
|||||||
$('a[href="'+ window.location.hash +'"]').tab('show');
|
$('a[href="'+ window.location.hash +'"]').tab('show');
|
||||||
window.scrollTo(0);
|
window.scrollTo(0);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
@ -345,6 +345,9 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Open the tab defined in the URL
|
||||||
|
$('a[href="'+ window.location.hash +'"]').tab('show');
|
||||||
|
window.scrollTo(0);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -536,10 +539,4 @@
|
|||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php echo Bootstrap::formClose(); ?>
|
<?php echo Bootstrap::formClose(); ?>
|
||||||
|
|
||||||
<script>
|
|
||||||
// Open the tab defined in the URL
|
|
||||||
const anchor = window.location.hash;
|
|
||||||
$(`a[href="${anchor}"]`).tab('show');
|
|
||||||
</script>
|
|
Loading…
x
Reference in New Issue
Block a user