mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
These don't need to be wrapped in a jquery onload
This commit is contained in:
@@ -17,29 +17,27 @@
|
||||
<%src_path = script_attributes.get("src") %>
|
||||
<script type="text/javascript" src="${static_url}${src_path}"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
config.addInitialization(function() {
|
||||
let dump = ${h.dumps(config)};
|
||||
var load = "${script_attributes.get("load")}";
|
||||
if (!bundleEntries[load]) {
|
||||
load = "load";
|
||||
}
|
||||
if (!bundleEntries[load]) {
|
||||
alert("Load function '" + load + "' not found.");
|
||||
} else {
|
||||
var app = bundleEntries.chart({
|
||||
visualization_id: ${h.dumps(visualization_id)} || undefined,
|
||||
visualization_name: ${h.dumps(visualization_name)},
|
||||
visualization_plugin: ${h.dumps(visualization_plugin)},
|
||||
dataset_id: dump.dataset_id,
|
||||
chart_dict: dump.chart_dict,
|
||||
chart_load: bundleEntries[load]
|
||||
});
|
||||
$('body').css("overflow", "hidden")
|
||||
.css("margin", 0)
|
||||
.append(app.$el);
|
||||
}
|
||||
});
|
||||
config.addInitialization(function() {
|
||||
let dump = ${h.dumps(config)};
|
||||
var load = "${script_attributes.get("load")}";
|
||||
if (!bundleEntries[load]) {
|
||||
load = "load";
|
||||
}
|
||||
if (!bundleEntries[load]) {
|
||||
alert("Load function '" + load + "' not found.");
|
||||
} else {
|
||||
var app = bundleEntries.chart({
|
||||
visualization_id: ${h.dumps(visualization_id)} || undefined,
|
||||
visualization_name: ${h.dumps(visualization_name)},
|
||||
visualization_plugin: ${h.dumps(visualization_plugin)},
|
||||
dataset_id: dump.dataset_id,
|
||||
chart_dict: dump.chart_dict,
|
||||
chart_load: bundleEntries[load]
|
||||
});
|
||||
$('body').css("overflow", "hidden")
|
||||
.css("margin", 0)
|
||||
.append(app.$el);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</%def>
|
||||
|
||||
Reference in New Issue
Block a user