File diff suppressed because it is too large
Load Diff
@@ -172,11 +172,7 @@
|
|||||||
<input type="button" value="upload m3u8">
|
<input type="button" value="upload m3u8">
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<script>
|
<script src="{{ path "/admin/static/playlist-upload.js" }}"></script>
|
||||||
document.getElementById("playlist-upload-input").onchange = (e) => {
|
|
||||||
document.getElementById("playlist-upload-form").submit();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
3
server/assets/static/playlist-upload.js
Normal file
3
server/assets/static/playlist-upload.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
document.getElementById("playlist-upload-input").onchange = e => {
|
||||||
|
document.getElementById("playlist-upload-form").submit();
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user