Commit 0ccc7b69 authored by Romain Loth's avatar Romain Loth

[FIX] prevent "Graphs with xxx distance" links from breaking when TheBuffer is undef

parent 47e66a79
......@@ -216,7 +216,7 @@
{% endif %}
{% endblock %}
{% block content %}
{% endblock %}
......@@ -278,10 +278,13 @@
<script type="text/javascript">
// constrains the graph request with startdate & enddate if present
// TODO move in another template (only for pages that have dynacharts with a start/end)
// and then in other pages replace all links like onclick='gotoexplorer(this) by normal links
function gotoexplorer(elem) {
var url_ = $(elem).data("url")
if (TheBuffer==false) {
// undef or false
if (typeof TheBuffer == "undefined" || !TheBuffer) {
return window.open(url_,'_blank');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment