I have this snippet in the Summary of the field configuration of a Project:
<script type="text/javascript">
AJS.toInit(function(){
AJS.$('#show-more-links-link').click();
})
</script>
It works OK in issues in projects using that field configuration (it clicks the 'more links' link when viewing the issue). But if I change the permission so current user can't edit the issue, it stops working.
This is JIRA 6.1
Any ideas?