update main branch #47
File diff suppressed because one or more lines are too long
|
@ -1,8 +1,13 @@
|
||||||
(function($) {
|
|
||||||
$(document).ready(function() {
|
$(function(){
|
||||||
$('._expand_site_item').click(function() {
|
$("#site-list").on( "click", ".accordion-title", function() {
|
||||||
$(this).next('tr').toggle();
|
var content = $(this).closest('.accordion-item')
|
||||||
|
.find('.accordion-content')
|
||||||
|
if ($(content).is(':visible')) {
|
||||||
|
$(content).slideUp('fast')
|
||||||
|
} else {
|
||||||
|
$(content).slideDown('fast')
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
});
|
})
|
||||||
})(jQuery)
|
|
||||||
|
|
|
@ -21,11 +21,13 @@ $collections = htmlentities(json_encode($collections, JSON_HEX_QUOT), ENT_QUOTES
|
||||||
//$collections = json_encode($collections);
|
//$collections = json_encode($collections);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div data-vue-component="archive-list"
|
<div id="site-list">
|
||||||
|
<div
|
||||||
|
data-vue-component="archive-list"
|
||||||
data-collections='<?= $collections ?>'
|
data-collections='<?= $collections ?>'
|
||||||
data-page_size=3>
|
data-page_size=3>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="/themes/archive/asset/js/archive-list.js"></script>
|
<script src="/themes/archive/asset/js/archive-list.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue