Skip to content

Commit

Permalink
Merge pull request #73 from cmason3/dev
Browse files Browse the repository at this point in the history
allow textareas to be used in jinjafx_input
  • Loading branch information
cmason3 authored Feb 21, 2025
2 parents 55ae6d0 + d00a05c commit 5d540e8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
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

0 comments on commit 5d540e8

Please sign in to comment.