diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2012-04-29 21:22:00 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2012-04-29 21:22:00 +1200 |
| commit | ccd6eeed4b8eafcfd2530057fb645915fe335caf (patch) | |
| tree | f950def13a56a87c9b8c7eb5dc8ea0ab5d49f33d /libpathod/templates/previewform.html | |
| parent | 1431b36c4a226dc9b57a3334364a0c40162c388f (diff) | |
| download | mitmproxy-ccd6eeed4b8eafcfd2530057fb645915fe335caf.tar.gz mitmproxy-ccd6eeed4b8eafcfd2530057fb645915fe335caf.tar.bz2 mitmproxy-ccd6eeed4b8eafcfd2530057fb645915fe335caf.zip | |
Make "Go" button on preview form work.
Diffstat (limited to 'libpathod/templates/previewform.html')
| -rw-r--r-- | libpathod/templates/previewform.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libpathod/templates/previewform.html b/libpathod/templates/previewform.html new file mode 100644 index 00000000..42502ba7 --- /dev/null +++ b/libpathod/templates/previewform.html @@ -0,0 +1,12 @@ +<form class="well form-search" method="GET" action="/preview"> + <input id="spec" style="width: 30em;" name="spec" class="input-medium search-query" value="{{spec}}"> + <input type="submit" class="btn" value="preview"> + <a href="#" id="submitspec" class="btn">go</a> +</form> +<script> + $(function(){ + $("#submitspec").click(function(){ + document.location = "/p/" + $("#spec").val() + }); + }); +</script> |
