Remove jQuery Montage

No longer used since we list assets with a macro.
This commit is contained in:
Pablo Vazquez 2018-09-17 14:23:53 +02:00
parent cede3e75db
commit 77f855be3e
2 changed files with 1 additions and 42 deletions

File diff suppressed because one or more lines are too long

View File

@ -44,44 +44,4 @@ section.px-4
include _scripts
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.montage.min.js') }}")
script.
function montage(){
var $container = $('#featured-list'),
$imgs = $container.find('img').hide(),
totalImgs = $imgs.length,
cnt = 0;
$imgs.each(function(i) {
var $img = $(this);
$('<img/>').on('load', function() {
++cnt;
if( cnt === totalImgs ) {
$imgs.show();
$container.montage({
fillLastRow : true,
alternateHeight : true,
alternateHeightRange : {
min : 180,
max : 240
},
margin : 3
});
}
}).attr('src',$img.attr('src'));
$img.parent().removeClass('hidden');
});
}
$(function() {
montage();
$(".node-updates-list-item.asset, .node-updates-list-item.group")
.unbind('click')
.click(function(e) {
e.preventDefault();
displayNode($(this).data('node_id'));
});
});
| {% endblock %}
| {% endblock body %}