mjhea0 / flaskr-tdd

Flaskr: Intro to Flask, Test-Driven Development (TDD), and JavaScript

Home Page:http://flaskr-tdd.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

h2 tag id must be specified in the new Bootstrap 3 templates

feelosophy13 opened this issue · comments

Under "More Color", for index.html.

The code should be:

<li class="entry"><h2 id={{ entry.id }}>{{ entry.title }}</h2>{{ entry.text|safe }}

Instead of:

<li class="entry"><h2>{{ entry.title }}</h2>{{ entry.text|safe }}

Otherwise, jQuery cannot select the post item and delete when clicked.

Want to submit a pull request?

Wait .. Doesn't that get updated here -> https://github.com/mjhea0/flaskr-tdd#indexhtml