move inline js to external file

closes #51
This commit is contained in:
sentriz
2020-03-31 15:42:45 +01:00
parent d954a60ec0
commit e84470861d
3 changed files with 548 additions and 544 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -172,11 +172,7 @@
<input type="button" value="upload m3u8">
</div>
</form>
<script>
document.getElementById("playlist-upload-input").onchange = (e) => {
document.getElementById("playlist-upload-form").submit();
}
</script>
<script src="{{ path "/admin/static/playlist-upload.js" }}"></script>
</div>
</div>
{{ end }}

View File

@@ -0,0 +1,3 @@
document.getElementById("playlist-upload-input").onchange = e => {
document.getElementById("playlist-upload-form").submit();
};