Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow textareas to be used in jinjafx_input #73

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## CHANGELOG

### [25.5.3] - Feb 21, 2025
- Fixed issue #72 - `textarea` Inputs Not Recognized in Custom JinjaFx Input Forms

### [25.5.2] - Feb 11, 2025
- Fixed a regression where Pandoc conversion to DOCX hasn't been working since 25.3.0

Expand Down Expand Up @@ -413,6 +416,7 @@
- Initial release


[25.5.3]: https://github.com/cmason3/jinjafx_server/compare/25.5.2...25.5.3
[25.5.2]: https://github.com/cmason3/jinjafx_server/compare/25.5.1...25.5.2
[25.5.1]: https://github.com/cmason3/jinjafx_server/compare/25.5.0...25.5.1
[25.5.0]: https://github.com/cmason3/jinjafx_server/compare/25.4.0...25.5.0
Expand Down
2 changes: 1 addition & 1 deletion jinjafx_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import re, argparse, hashlib, traceback, glob, hmac, uuid, struct, binascii, gzip, requests, ctypes, subprocess
import cmarkgfm, emoji

__version__ = '25.5.2'
__version__ = '25.5.3'

llock = threading.RLock()
rlock = threading.RLock()
Expand Down
2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/4.1.0/js-yaml.min.js" integrity="sha512-CSBhVREyzHAjAFfBlIBakjoRUKp5h7VSweP0InR/pAJyptH7peuhCsqAI/snV+TwZmXZqoUklpXp6R6wMnYf5Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.13/dayjs.min.js" integrity="sha512-FwNWaxyfy2XlEINoSnZh1JQ5TRRtGow0D6XcmAWmYCRgvqOUTnzCxPc9uF35u5ZEpirk1uhlPVA19tflhvnW1g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.13/plugin/relativeTime.min.js" integrity="sha512-MVzDPmm7QZ8PhEiqJXKz/zw2HJuv61waxb8XXuZMMs9b+an3LoqOqhOEt5Nq3LY1e4Ipbbd/e+AWgERdHlVgaA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="/84403509/jinjafx_m.js"></script>
<script src="/f15b2e54/jinjafx_m.js"></script>
</head>
<body>
<div id="overlay"></div>
Expand Down
6 changes: 3 additions & 3 deletions www/jinjafx_m.js
Original file line number Diff line number Diff line change
Expand Up @@ -1443,15 +1443,15 @@ function getStatusText(code) {
});

document.getElementById('jinjafx_input').addEventListener('shown.bs.modal', function (e) {
var focusable = document.getElementById('jinjafx_input_form').querySelectorAll('input,select');
var focusable = document.getElementById('jinjafx_input_form').querySelectorAll('input,select,textarea');
if (focusable.length) {
focusable[0].focus();
}
});

document.getElementById('ml-input-reset').onclick = function(e) {
document.getElementById('jinjafx_input_form').innerHTML = r_input_form;
var focusable = document.getElementById('jinjafx_input_form').querySelectorAll('input,select');
var focusable = document.getElementById('jinjafx_input_form').querySelectorAll('input,select,textarea');
if (focusable.length) {
focusable[0].focus();
}
Expand All @@ -1463,7 +1463,7 @@ function getStatusText(code) {
jinput.hide();

var vars = {};
document.getElementById('input_form').querySelectorAll('input,select').forEach(function(e, i) {
document.getElementById('input_form').querySelectorAll('input,select,textarea').forEach(function(e, i) {
if (e.getAttribute('data-var') != null) {
if (e.dataset.var.match(/\S/)) {
var v = e.value;
Expand Down
Loading