Files
interblue.pl/modules/pshowimporter/views/js/config_matchxmlfields_matches.js
2024-10-25 14:16:28 +02:00

40 lines
1.0 KiB
JavaScript

// fixed table header
if (typeof FIXED_TABLE_HEADING_INITIALIZED === 'undefined' && typeof $('.matchHeading').offset() !== 'undefined')
{
$(function () {
setTimeout(function () {
$(window).scroll(function () {
if ($(window).scrollTop() > $('.matchHeadingTable').offset().top)
{
$('.matchHeading').show().css({
'position': 'fixed',
'width': '90%',
'top': $('.navbar-header').height() + 'px',
'background-color': '#EDF7FB',
'padding': '10px 0 5px',
'z-index': '9999'
});
} else
{
$('.matchHeading').hide();
}
});
}, 1500);
});
}
var FIXED_TABLE_HEADING_INITIALIZED = 1;
$(function () {
$('select.prestashop_field').each(function () {
toggleFieldSettingsBtn($(this));
});
});