"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
@ -345,6 +345,9 @@
|
||||
}
|
||||
});
|
||||
|
||||
// Open the tab defined in the URL
|
||||
$('a[href="'+ window.location.hash +'"]').tab('show');
|
||||
window.scrollTo(0);
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -537,9 +540,3 @@
|
||||
</div>
|
||||
|
||||
<?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