aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/templates/response_previewform.html
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-24 23:38:41 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-24 23:38:41 +1200
commit8f0ebb405d898623f02d22e99505ba944884f398 (patch)
tree69e58bb7839a33d70c067423ca1397311f710172 /libpathod/templates/response_previewform.html
parentab59d6dccf0d1f3715021a6c7ec3afb11c0c02d3 (diff)
downloadmitmproxy-8f0ebb405d898623f02d22e99505ba944884f398.tar.gz
mitmproxy-8f0ebb405d898623f02d22e99505ba944884f398.tar.bz2
mitmproxy-8f0ebb405d898623f02d22e99505ba944884f398.zip
Hide "go" button if crafting is off. Use configured crafting anchor point.
Diffstat (limited to 'libpathod/templates/response_previewform.html')
-rw-r--r--libpathod/templates/response_previewform.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/libpathod/templates/response_previewform.html b/libpathod/templates/response_previewform.html
index 74b25ce1..d98a72f7 100644
--- a/libpathod/templates/response_previewform.html
+++ b/libpathod/templates/response_previewform.html
@@ -1,12 +1,16 @@
<form class="form-inline" method="GET" action="/response_preview">
<input id="spec" name="spec" class="input-medium search-query" value="{{spec}}">
<input type="submit" class="btn" value="preview">
- <a href="#" id="submitspec" class="btn">go</a>
+ {% if not nocraft %}
+ <a href="#" id="submitspec" class="btn">go to</a>
+ {% endif %}
</form>
<script>
$(function(){
+ {% if not nocraft %}
$("#submitspec").click(function(){
- document.location = "/p/" + $("#spec").val()
+ document.location = "{{craftanchor}}" + $("#spec").val()
});
+ {% endif %}
});
</script>