mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix subscribe button when logged out
This commit is contained in:
parent
1568a35cfb
commit
13b0526c7a
1 changed files with 4 additions and 1 deletions
|
@ -155,7 +155,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.getElementById("subscribe")["href"] = "javascript:void(0);"
|
subscribe_button = document.getElementById("subscribe");
|
||||||
|
if (subscribe_button.getAttribute('onclick')) {
|
||||||
|
subscribe_button["href"] = "javascript:void(0);";
|
||||||
|
}
|
||||||
|
|
||||||
function subscribe() {
|
function subscribe() {
|
||||||
var url = "/subscription_ajax?action_create_subscription_to_channel=1&c=<%= video.ucid %>&referer=<%= env.get("current_page") %>";
|
var url = "/subscription_ajax?action_create_subscription_to_channel=1&c=<%= video.ucid %>&referer=<%= env.get("current_page") %>";
|
||||||
|
|
Loading…
Reference in a new issue