mirror of https://github.com/apache/superset.git
parent
70be44afe1
commit
f6ebd789bf
|
@ -18,7 +18,16 @@
|
||||||
#}
|
#}
|
||||||
<script>
|
<script>
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
window.open(window.location += '&action=go', '_blank');
|
|
||||||
|
// See issue #7353, window.open fails
|
||||||
|
var a = document.createElement('a');
|
||||||
|
a.href = window.location + '&action=go';
|
||||||
|
a.download = 'dashboards.json';
|
||||||
|
document.body.appendChild(a);
|
||||||
|
a.click();
|
||||||
|
document.body.removeChild(a);
|
||||||
|
|
||||||
window.location = '{{ dashboards_url }}';
|
window.location = '{{ dashboards_url }}';
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue