mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 01:40:38 +01:00
26 lines
481 B
HTML
26 lines
481 B
HTML
|
{#
|
||
|
Automatically increase textarea height to match content to facilitate editing
|
||
|
#}
|
||
|
{% extends 'admin/model/edit.html' %}
|
||
|
|
||
|
{% block head %}
|
||
|
|
||
|
{{ super() }}
|
||
|
<style>
|
||
|
body{
|
||
|
max-width: 80%;
|
||
|
margin: auto;
|
||
|
}
|
||
|
</style>
|
||
|
{% endblock %}
|
||
|
{% block tail %}
|
||
|
|
||
|
{{ super() }}
|
||
|
<script type="application/javascript">
|
||
|
$('textarea').each(function (index) {
|
||
|
this.style.height = "";
|
||
|
this.style.height = this.scrollHeight + "px";
|
||
|
});
|
||
|
</script>
|
||
|
{% endblock %}
|