Fix header of shots/assets list
This commit is contained in:
@@ -143,3 +143,16 @@ $(window).on('load resize', function(){
|
||||
|
||||
$('.col-scrollable').css({'height': window_height});
|
||||
});
|
||||
|
||||
|
||||
/* Fix header of items list (like assets or shots */
|
||||
function itemsListFixHeader(toClone, toAppend){
|
||||
var target = $(toClone);
|
||||
var target_children = target.children();
|
||||
var clone = target.clone();
|
||||
|
||||
clone.children().width(function(i,val) {
|
||||
return target_children.eq(i).width();
|
||||
});
|
||||
$(toAppend).append(clone);
|
||||
}
|
||||
|
Reference in New Issue
Block a user