Question: Custom JavaScript file in Galaxy
0
ebiokit • 10 wrote:
Hi all!
I want to add some custom features to my own Galaxy instance and I need to load a new JavaScript file when Galaxy starts. Now I'm loading the JS file in /usr/local/galaxy/templates/js-app.mako as follows:
<!DOCTYPE HTML>
<html>
<!--js-app.mako-->
<head>
<title>Galaxy</title>
...
</head>
<body scroll="no" class="full-content">
## js libraries and bundled js app (line ~43)
${ h.js(
'bundled/libs.bundled',
'bundled/' + js_app_name + '.bundled',
'MY_JAVASCRIPT_FILE.js'
)}
...
</body>
</html>
...
However, I'm pretty sure that there is an easier and more correct way to do it.
Any ideas?
Many thanks!!
—
Rafa
ADD COMMENT
• link
•
modified 2.3 years ago
by
carlfeberhard ♦ 390
•
written
2.4 years ago by
ebiokit • 10