0 votes
in Rock by TinaStephens (8.6k points)
edited

Asana: https://app.asana.com/0/1202285749308316/1204220999772960/f

I'm working on Project Management for Scottsdale Bible. They would like project files that are uploaded to open in a new browser tab from the Ticket Detail page.

Here's a link to a Detail: https://rock.scottsdalebible.com/Project/73 Click on view.

The file uploads are a file type for Project management. https://rock.scottsdalebible.com/admin/general/file-types/22 and the Detail page is populated from this workflow: https://rock.scottsdalebible.com/admin/general/workflows?workflowTypeId=466&ExpandedIds=C142

I don't see any way to make an adjustment like that on the Upload. Is it possible?

1 Answer

0 votes
by (13.1k points)
edited
 
Best answer

Originally posted by Unknown

I guess Rock doesn't let you adjust the template for the rendered "View" button as I thought it did...so I added some JQuery to add target="_blank" to the button which opens it in a new tab:

<script>
    function pageLoad() {
        $("a[href^='/GetFile.ashx']").attr("target","_blank");
    }
</script>
by TinaStephens (8.6k points)
@Russell Thank you!
Welcome! Here you can ask questions and receive answers (hopefully) from other members of our team.
...