summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-06-10 20:49:22 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2016-06-10 20:49:22 +0200
commitc9ffbf6e180b713d6601b54ecde98ed9ef370d41 (patch)
tree97c2a89c5c2fe35ad6cac4ad87daa809f0e9defa /templates/index.html
parent6011f006bff9649601a9f0638f221482e48f3651 (diff)
downloadjokevote-c9ffbf6e180b713d6601b54ecde98ed9ef370d41.tar.gz
jokevote-c9ffbf6e180b713d6601b54ecde98ed9ef370d41.zip
block export button for smoothstatejs, open txt properly
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index c83d78c..f8d9bcf 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -35,7 +35,7 @@
</form>
{% endif %}
<div class="col s2 m12 l2 right">
- <a class="btn-floating btn-large right" href="/export{% if query %}?{{ query }}{% endif %}"><i class="material-icons">file_download</i></a>
+ <a id="export" target="_blank" class="btn-floating btn-large right" href="/export{% if query %}?{{ query }}{% endif %}"><i class="material-icons">file_download</i></a>
</div>
</div>
</header>
@@ -136,7 +136,11 @@
</div>
<script type="text/javascript">
$(document).ready(function() {
- $('#main').smoothState({prefetch: true, locationHeader: 'X-SmoothState-Location'});
+ $('#main').smoothState({
+ prefetch: true,
+ locationHeader: 'X-SmoothState-Location',
+ blacklist: '#export'
+ });
});
function openEditor(me) {
var joke = $(me).closest('.joke');