Skip to content

Commit

Permalink
Fixed CodeMirror on database page, closes #560
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Nov 11, 2019
1 parent 68cf2e3 commit 5a8c335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasette/templates/database.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1 style="padding-left: 10px; border-left: 10px solid #{{ database_color(databa
{% if config.allow_sql %}
<form class="sql" action="{{ database_url(database) }}" method="get">
<h3>Custom SQL query</h3>
<p><textarea name="sql">{% if tables %}select * from {{ tables[0].name|escape_sqlite }}{% else %}select sqlite_version(){% endif %}</textarea></p>
<p><textarea id="sql-editor" name="sql">{% if tables %}select * from {{ tables[0].name|escape_sqlite }}{% else %}select sqlite_version(){% endif %}</textarea></p>
<p><input type="submit" value="Run SQL"></p>
</form>
{% endif %}
Expand Down

0 comments on commit 5a8c335

Please sign in to comment.