Fix typo in function name

This commit is contained in:
Misode
2019-09-10 13:22:09 +02:00
parent 0e6a6eac4d
commit d10135a65c
2 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@
</div>
</div>
<textarea id="copyTextarea" rows="1" class="form-control mb-3 d-none"></textarea>
<textarea id="source" class="form-control code" onchange="updateSouce()" rows="19" spellcheck="false"></textarea>
<textarea id="source" class="form-control code" onchange="updateSource()" rows="19" spellcheck="false"></textarea>
</div>
</div>
</div>

View File

@@ -16,7 +16,7 @@ addEntry($('#structure .pool').get());
const params = new URLSearchParams(window.location.search);
if (params.has('q')) {
$('#source').val(atob(params.get('q')));
updateSouce();
updateSource();
}
function updateTableType() {
@@ -51,7 +51,7 @@ function linkSource() {
}, 2000);
}
function updateSouce() {
function updateSource() {
$('#source').removeClass('invalid');
try {
table = JSON.parse($('#source').val());