Skip to content

Commit

Permalink
Adds total number of channel
Browse files Browse the repository at this point in the history
  • Loading branch information
yadomi committed Dec 7, 2024
1 parent 7fefa5f commit 4f728e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/manage.eta
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</style>
</head>
<body>
<h1>manage</h1>
<h1>manage (<%= it.data.length %>)</h1>

<form action="/?method=add_by_url" method="POST">
<input type="text" name="url" placeholder="https://youtube.com/... "/><input type="submit" value="add"/>
Expand Down Expand Up @@ -94,7 +94,7 @@
<label>notify <input data-submit type="checkbox" name="value" <% if (channel.notify) { %> checked="checked" <% } %> /></label>
<input type="hidden" name="channel_id" value="<%= channel.id%>" />
</form>

</td>
</tr>
<% }) %>
Expand All @@ -107,11 +107,11 @@
document.addEventListener('click', (event) => {
const x = event.target.dataset

if ("submit" in x) {
if ("submit" in x) {
event.preventDefault();
event.target.form.submit()
}

})

})()
Expand Down

0 comments on commit 4f728e2

Please sign in to comment.