change class name for expandable text
authorJan Szejko <janek37@gmail.com>
Wed, 11 Jul 2018 09:27:25 +0000 (11:27 +0200)
committerJan Szejko <janek37@gmail.com>
Wed, 11 Jul 2018 09:27:25 +0000 (11:27 +0200)
src/catalogue/templates/catalogue/book_short.html
src/wolnelektury/static/js/base.js

index c8dd95f..fff3fc0 100644 (file)
       {% endif %}
     {% endblock %}
     {% if book.abstract %}
       {% endif %}
     {% endblock %}
     {% if book.abstract %}
-      <div class="abstract more">
+      <div class="abstract more-expand">
         {{ book.abstract|safe }}
       </div>
     {% endif %}
         {{ book.abstract|safe }}
       </div>
     {% endif %}
index bdb5fbe..439ba13 100644 (file)
@@ -57,7 +57,7 @@
             })
         });
 
             })
         });
 
-        $('.more').each(function () {
+        $('.more-expand').each(function () {
             $(this).shorten({
                 showChars: 150,
                 moreText: "więcej",
             $(this).shorten({
                 showChars: 150,
                 moreText: "więcej",