summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/blocks/DataTables.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/blocks/DataTables.html')
-rw-r--r--ishtar_common/templates/blocks/DataTables.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/ishtar_common/templates/blocks/DataTables.html b/ishtar_common/templates/blocks/DataTables.html
index 3d1b817a8..199cd3af2 100644
--- a/ishtar_common/templates/blocks/DataTables.html
+++ b/ishtar_common/templates/blocks/DataTables.html
@@ -94,7 +94,21 @@ map_submit_search = function(){
return _map_submit_search(query_vars, "{{name}}", "{{source}}");
};
{% endif %}
+
+extra_list = [
+ "default"{% for source_id, source_label, source_url in external_sources %},
+"{{source_id}}"{% endfor %}
+];
+
+sources = [
+ "{{source}}"{% for source_id, source_label, source_url in external_sources %},
+ "{{source_url}}"{% endfor %}
+];
+
stats_submit_search = function(){
+ {% if external_sources %}{% for source_id, source_label, source_url in external_sources %}
+ _stats_submit_search(query_vars, "{{name}}", "{{source_url}}", "{{source_id}}");
+ {% endfor %}{% endif %}
return _stats_submit_search(query_vars, "{{name}}", "{{source}}");
};
@@ -157,6 +171,7 @@ jQuery(document).ready(function(){
function(){
$(".sources").hide();
$(".sources-default").show();
+ redraw_plots("{{name}}", "default");
}
);
{% for source_id, source_label, source_url in external_sources %}
@@ -164,6 +179,7 @@ jQuery(document).ready(function(){
function(){
$(".sources").hide();
$(".sources-{{source_id}}").show();
+ redraw_plots("{{name}}", "{{source_id}}");
}
);
{% endfor %}