Arc-hive-omeka-theme/assets/js/browse.js

16 lines
668 B
JavaScript
Raw Normal View History

2022-03-29 18:24:12 +02:00
(function($) {
$(document).ready(function() {
$('.layout-toggle button').click(function() {
$('.layout-toggle button:disabled').removeAttr('disabled');
$(this).attr('disabled', true);
$('.resources').toggleClass('resource-list').toggleClass('resource-grid');
$('.resources .resource').toggleClass('media-object');
$('.resource-meta, .resource-image').toggleClass('media-object-section');
});
$('.browse-toggle').click(function() {
$('.browse-controls').toggleClass('open closed');
$(this).toggleClass('open closed');
});
});
})(jQuery)