Add title to table-spacer, so we know what column we're expanding
This commit is contained in:
@@ -79,14 +79,15 @@ script.
|
|||||||
|
|
||||||
var same_cells;
|
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();
|
e.stopPropagation();
|
||||||
|
|
||||||
/* We need to find every cell matching the same classes */
|
/* We need to find every cell matching the same classes */
|
||||||
same_cells = '.' + $(this).parent().attr('class').split(' ').join('.');
|
same_cells = '.' + $(this).parent().attr('class').split(' ').join('.');
|
||||||
$(same_cells).hide();
|
$(same_cells).hide();
|
||||||
/* Add the spacer which we later click to expand */
|
/* Add the spacer which we later click to expand */
|
||||||
$('<div class="table-cell-spacer"></div>').insertAfter(same_cells);
|
$('<div class="table-cell-spacer" title="Expand ' + $(this).text() + '"></div>').insertAfter(same_cells);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('body').on('click', '.table-cell-spacer', function(){
|
$('body').on('click', '.table-cell-spacer', function(){
|
||||||
|
Reference in New Issue
Block a user