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