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() %}