[BS5] remember last nav pill - revert id var

This commit is contained in:
FreddleSpl0it 2022-06-08 12:12:12 +02:00
parent 6210f06bc0
commit 304655f7ff

View File

@ -66,7 +66,7 @@ $(document).ready(function() {
if ($(this).data('dont-remember') == 1) {
return true;
}
var id = $(this).attr('id');
var id = $(this).parents('[role="tablist"]').attr('id');
var key = 'lastTag';
if (id) {
key += ':' + id;
@ -84,7 +84,7 @@ $(document).ready(function() {
if ($(this).data('dont-remember') == 1) {
return true;
}
var id = $(this).attr('id');
var id = $(this).parents('[role="tablist"]').attr('id');;
var key = 'lastTag';
if (id) {
key += ':' + id;