Initial commit - Typo3 11.5.41
This commit is contained in:
19
typo3conf/ext/news/Resources/Public/JavaScript/PageLayout.js
Normal file
19
typo3conf/ext/news/Resources/Public/JavaScript/PageLayout.js
Normal file
@@ -0,0 +1,19 @@
|
||||
define(['jquery'], function ($) {
|
||||
|
||||
var table = $('.news-table');
|
||||
|
||||
|
||||
|
||||
$(table).each(function() {
|
||||
if ($(this).width() < 350) {
|
||||
$(this).addClass('news-table-small');
|
||||
}
|
||||
});
|
||||
|
||||
$('.news-table tfoot a').click(function (e, element) {
|
||||
$(this).toggleClass('open');
|
||||
$('#' + $(this).data('identifier')).toggleClass('hidden');
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user