From 33a8898656b53bdcd2c45e81f046118c6b290fb2 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 15 Sep 2019 14:59:19 -0700 Subject: Only display local playlist controls in header on pages with videos --- youtube/templates/base.html | 146 ++++++++++++++++++++++---------------------- 1 file changed, 74 insertions(+), 72 deletions(-) diff --git a/youtube/templates/base.html b/youtube/templates/base.html index 79bff96..ac5c1ce 100644 --- a/youtube/templates/base.html +++ b/youtube/templates/base.html @@ -93,85 +93,87 @@ -
- - - {% for playlist_name in header_playlist_names %} - - {% endfor %} - - - -
- + playlistAddForm.addEventListener('submit', function(event){ + event.preventDefault(); + sendData(); + }); + + {% endif %}
{% block main %} -- cgit v1.2.3