Make catalog look OK even with JS disabled

For some reason, threads in the catalog were laid out by a jQuery plug-in. This is
now removed and the layout is created purely by handcrafted CSS code.
This commit is contained in:
Matěj Grabovský 2015-03-27 22:37:42 +01:00
parent ff2531a61e
commit 37c5e4f860
5 changed files with 6 additions and 49 deletions

View file

@ -45,8 +45,7 @@
<div class="threads">
<ul id="Grid">
{% for post in recent_posts %}
<li class="mix"
data-reply="{{ post.reply_count }}"
<li data-reply="{{ post.reply_count }}"
data-bump="{{ post.bump }}"
data-time="{{ post.time }}"
>

View file

@ -77,7 +77,7 @@
$recent_posts[] = $post;
}
$required_scripts = array('js/jquery.min.js', 'js/jquery.mixitup.min.js', 'js/catalog.js');
$required_scripts = array('js/jquery.min.js', 'js/catalog.js');
foreach($required_scripts as $i => $s) {
if (!in_array($s, $config['additional_javascript']))