Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // my_list.html
- {% extends "skeleton/base.html" %}
- {% load el_pagination_tags %}
- {% block custom_stylesheet %}
- {% endblock %}
- {% block content %}
- {% include page_template %}
- {% endblock %}
- {% block custom_js %}
- <script src="{% static 'el-pagination/js/el-pagination.js' %}"></script>
- <script>
- $.endlessPaginate({
- paginateOnScroll: true,
- paginateOnScrollMargin: 50
- });
- </script>
- {% javascript "clien" %}
- <script>
- $('.like').change(function() { // ajax로 새로이 load되는 element들에는 작동이 안함!
- alert(checked);
- })
- </script>
- {% endblock %}
- // my_list_page.html
- {% load el_pagination_tags %}
- <div>
- {% for post in posts %}
- <div>{{ post }}</div>
- <input class="like">
- {% endfor %}
- </div>
- {% show_more %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement