From 10ed89e8a524dc94dbb0c745465ea4bac940edb8 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 26 May 2016 17:21:10 -0400 Subject: [PATCH] Member list jquery for floating fixed --- index.php | 4 ++-- views/front/members/list.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index bd2859cb..980a2fbe 100644 --- a/index.php +++ b/index.php @@ -3,8 +3,8 @@ * Plugin Name: GLM Members Database * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 2.0.0 - * Author: Chuck Scott + * Version: 2.0.1 + * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 */ diff --git a/views/front/members/list.html b/views/front/members/list.html index 9c33fe97..23d62552 100644 --- a/views/front/members/list.html +++ b/views/front/members/list.html @@ -409,16 +409,16 @@ $(window).scroll(function() { var currentScroll = $(window).scrollTop(); - - if (currentScroll >= fixmeTop && {$settings.list_floating_search}) { + console.log("{$settings.list_floating_search_distance_top}"); + if (currentScroll >= fixmeTop-{$settings.list_floating_search_distance_top} && {$settings.list_floating_search}) { $('#glm-member-list-filters-wrapper').css({ position: 'fixed', - top: '{$settings.list_floating_search_distance_top}', + top: '{$settings.list_floating_search_distance_top}px', transform: 'translateX(0%)' }); } else { $('#glm-member-list-filters-wrapper').css({ - position: 'static', + position: 'relative', top: '0', transform: 'translateX(0%)' }); -- 2.17.1