diff --git a/src/templates/attract/shots/for_project.jade b/src/templates/attract/shots/for_project.jade index c3e3a39..7266d56 100644 --- a/src/templates/attract/shots/for_project.jade +++ b/src/templates/attract/shots/for_project.jade @@ -79,14 +79,15 @@ script. var same_cells; - $('.table-head .table-cell span').on('click', function(e){ + /* Collapse columns by clicking on the title */ + $('.table-head .table-cell span.collapser').on('click', function(e){ e.stopPropagation(); /* We need to find every cell matching the same classes */ same_cells = '.' + $(this).parent().attr('class').split(' ').join('.'); $(same_cells).hide(); /* Add the spacer which we later click to expand */ - $('
').insertAfter(same_cells); + $('
').insertAfter(same_cells); }); $('body').on('click', '.table-cell-spacer', function(){