Update scope to fix mozilla only
<i class="fa fa-clipboard" aria-hidden="true"></i>&nbsp;Copy
</button>
<script language="JavaScript">
- if (global_num_ext_refs > 0 && RESOURCE_MODE === 'Edit') {
+ $.ajax({
+ type: "GET",
+ url: '/hsapi/_internal/' + SHORT_ID + '/list-referenced-content/',
+ }).complete(function(res) {
+ if (res.responseText) {
+ const fn = JSON.parse(res.responseText).filenames.length
+ if (fn > 0 && RESOURCE_MODE === 'Edit') {
document.getElementById('edit-citation-control').style.display = "block"
}
+ }
+ });
</script>
</div>
{% if self_access_level == 'owner' and not cm.raccess.published and cm.can_be_published %}
