From 994bc8b0e4c39200cc292adcbcd67d37bd3e25c7 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Mon, 15 Mar 2021 08:58:50 +0100 Subject: [PATCH] Removed dropdown button on single file listen/read (Fix #1840) --- cps/static/js/main.js | 2 +- cps/templates/detail.html | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/cps/static/js/main.js b/cps/static/js/main.js index fea85990..d428ed62 100644 --- a/cps/static/js/main.js +++ b/cps/static/js/main.js @@ -87,7 +87,7 @@ $(".container-fluid").bind('drop', function (e) { var files = e.originalEvent.dataTransfer.files; var test = $("#btn-upload")[0].accept; $(this).css('background', ''); - const dt = new DataTransfer() + const dt = new DataTransfer(); jQuery.each(files, function (index, item) { if (test.indexOf(item.name.substr(item.name.lastIndexOf('.'))) !== -1) { dt.items.add(item); diff --git a/cps/templates/detail.html b/cps/templates/detail.html index 06686a9c..342cce53 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -55,6 +55,7 @@ {% endif %} {% if reader_list and g.user.role_viewer() %}
+ {% if reader_list|length > 1 %}
{% endif %} {% if audioentries|length > 0 and g.user.role_viewer() %}
+ {% if audioentries|length > 1 %} -
{% endif %}