Initial import
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
$(function() {
|
||||
$('.table-responsive').each(function() {
|
||||
if ($(this).find('table').width() > $(this).width()) {
|
||||
$(this).append('<div class="text-muted small mt-1"><i class="bi bi-arrow-left-right"></i> เลื่อนดูตารางด้านข้างได้</div>');
|
||||
}
|
||||
});
|
||||
|
||||
// Fail-safe tab switcher for import tabs
|
||||
$('#importTab button').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
// Switch active tab class
|
||||
$('#importTab button').removeClass('active').attr('aria-selected', 'false');
|
||||
$(this).addClass('active').attr('aria-selected', 'true');
|
||||
|
||||
// Switch active pane class
|
||||
var target = $(this).attr('data-bs-target');
|
||||
$('#importTabContent .tab-pane').removeClass('show active');
|
||||
$(target).addClass('show active');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user