Skip to content

Commit 233204e

Browse files
authored
Merge pull request #96 from iMattPro/issues
2 parents d80f971 + 5c9ab4f commit 233204e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

adm/style/event/acp_overall_footer_after.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{% if S_PWA_OPTIONS %}
22
<script>
33
const input = document.getElementById('pwa_short_name');
4-
const maxLength = 12;
4+
const maxLength = input.maxLength || 12;
5+
6+
input.maxLength = maxLength * 2;
57

68
input.addEventListener('input', () => {
79
// Use Array.from to count characters correctly

event/listener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function pwa_short_sitename($value, $key)
215215
{
216216
$placeholder = $this->trim_shortname($this->config['sitename']);
217217

218-
return '<input id="' . $key . '" type="text" size="40" maxlength="24" name="config[' . $key . ']" value="' . $value . '" placeholder="' . $placeholder . '">';
218+
return '<input id="' . $key . '" type="text" size="40" maxlength="12" name="config[' . $key . ']" value="' . $value . '" placeholder="' . $placeholder . '">';
219219
}
220220

221221
/**

0 commit comments

Comments
 (0)