From ab723573367cba8c98baa0a53dd67e1c178f35cf Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 14 Jun 2017 18:31:09 +0200 Subject: [PATCH] scrollHeaderHorizontal: don't use hardcoded class --- src/scripts/tutti/00_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/tutti/00_utils.js b/src/scripts/tutti/00_utils.js index 1f5451f..e2b5552 100644 --- a/src/scripts/tutti/00_utils.js +++ b/src/scripts/tutti/00_utils.js @@ -159,7 +159,7 @@ function cloneChildren(toClone, toAppend){ /* Scroll fixed headers horizontally, used for the header of items_list (like assets or shots) */ function scrollHeaderHorizontal(scrollableClassName, fixedContainer, offset){ - var $table_list = $('.item-list'); + var $table_list = $(scrollableClassName); $table_list.scroll(function(e) { // Scroll of the table scrollableClassName from the left minus offset, inverted (multiplied by -1)