scrollHeaderHorizontal: don't use hardcoded class

This commit is contained in:
2017-06-14 18:31:09 +02:00
parent 0868449209
commit ab72357336

View File

@@ -159,7 +159,7 @@ function cloneChildren(toClone, toAppend){
/* Scroll fixed headers horizontally, used for the header of items_list (like assets or shots) */ /* Scroll fixed headers horizontally, used for the header of items_list (like assets or shots) */
function scrollHeaderHorizontal(scrollableClassName, fixedContainer, offset){ function scrollHeaderHorizontal(scrollableClassName, fixedContainer, offset){
var $table_list = $('.item-list'); var $table_list = $(scrollableClassName);
$table_list.scroll(function(e) { $table_list.scroll(function(e) {
// Scroll of the table scrollableClassName from the left minus offset, inverted (multiplied by -1) // Scroll of the table scrollableClassName from the left minus offset, inverted (multiplied by -1)