Home Information - Your home, your data, organized.
Python
Fix textarea auto-resize for new attribute creation (#66)
cassandra-ai-agent286c7e336134
diff --git a/src/hi/apps/attribute/templates/attribute/panes/attribute_form_new.html b/src/hi/apps/attribute/templates/attribute/panes/attribute_form_new.htmlindex 570fe3dd..b0b1fd1a 100644--- a/src/hi/apps/attribute/templates/attribute/panes/attribute_form_new.html+++ b/src/hi/apps/attribute/templates/attribute/panes/attribute_form_new.html@@ -40,6 +40,19 @@</div>+<script type="text/javascript">+(function() {+ let textareaSelector = '#{{ attribute_form.value.id_for_label }}';+ autosize($(textareaSelector));++ // In case this is in a modal, need to wait for autosize to work.+ $('.modal').on('shown.bs.modal', function () {+ autosize.update($(textareaSelector));+ });+ })();++</script>+<span><input type="checkbox" name="{{ attribute_form.secret.html_name }}"id="{{ attribute_form.secret.id_for_label }}"