Skip to content

Commit

Permalink
Remove unused JS global. Fix #1765.
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc committed Oct 27, 2017
1 parent 5a91856 commit b86aa43
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
4 changes: 3 additions & 1 deletion refinery/static/source/js/refinery/contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@

// =====================================

// TODO: This comes from old file browser, and in what's left, download is not supported.
function updateDownloadButton(button_id) {
if (query.getCurrentDocumentCount() > MAX_DOWNLOAD_FILES || query.getCurrentDocumentCount() <= 0 || !REFINERY_USER_AUTHENTICATED || ( showAnnotation && !allowAnnotationDownload )) {
if (query.getCurrentDocumentCount() > MAX_DOWNLOAD_FILES || query.getCurrentDocumentCount() <= 0 || ( showAnnotation && !allowAnnotationDownload )) {
$("#" + button_id).addClass("disabled");
$("#" + button_id).attr("data-original-title", MESSAGE_DOWNLOAD_UNAVAILABE);
} else {
Expand All @@ -84,6 +85,7 @@
}
}

// TODO: This comes from old file browser, and in what's left, IGV is not supported.
function updateIgvButton(button_id) {
if (query.getCurrentDocumentCount() <= 0) {
$("#" + button_id).addClass("disabled");
Expand Down
6 changes: 0 additions & 6 deletions refinery/templates/core/data_set.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,6 @@ <h1>Data Set
var REFINERY_REPOSITORY_MODE = false;
{% endif %}

{% if user.is_authenticated %}
var REFINERY_USER_AUTHENTICATED = true;
{% else %}
var REFINERY_USER_AUTHENTICATED = false;
{% endif %}

var csrf_token = "{{ csrf_token }}";
</script>

Expand Down
6 changes: 0 additions & 6 deletions refinery/templates/core/provenance.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,6 @@ <h1>Data Set
var REFINERY_REPOSITORY_MODE = false;
{% endif %}

{% if user.is_authenticated %}
var REFINERY_USER_AUTHENTICATED = true;
{% else %}
var REFINERY_USER_AUTHENTICATED = false;
{% endif %}

var csrf_token = "{{ csrf_token }}";
</script>

Expand Down
6 changes: 0 additions & 6 deletions refinery/templates/core/user_files.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ <h1>All Files</h1>
var REFINERY_REPOSITORY_MODE = false;
{% endif %}

{% if user.is_authenticated %}
var REFINERY_USER_AUTHENTICATED = true;
{% else %}
var REFINERY_USER_AUTHENTICATED = false;
{% endif %}

var csrf_token = "{{ csrf_token }}";
</script>

Expand Down

0 comments on commit b86aa43

Please sign in to comment.