diff options
Diffstat (limited to 'js/looking-glass.js')
-rw-r--r-- | js/looking-glass.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/looking-glass.js b/js/looking-glass.js index 4cbc47a..e6617ea 100644 --- a/js/looking-glass.js +++ b/js/looking-glass.js @@ -24,8 +24,16 @@ $(document).ready(function() { $('.close').click(function() { $('.alert').slideUp(); }); - $('#clear').click(function() { + + // clear the form and page + $('#clear').click(function(e) { $('.alert').slideUp(); + + e.preventDefault(); + + // reset the form and update the doc modal + $(this).closest('form').get(0).reset(); + request_doc($('#query').val()); }); // reset the view to the default one |