summaryrefslogtreecommitdiff
path: root/root
diff options
context:
space:
mode:
Diffstat (limited to 'root')
-rw-r--r--root/static/search.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/root/static/search.js b/root/static/search.js
index f7bb58c..8d8ff9f 100644
--- a/root/static/search.js
+++ b/root/static/search.js
@@ -1,14 +1,17 @@
$(function() {
$("#submit").click(function() {
$('#spinner').show();
+ $('#view').hide();
var q = $("input#q").val();
var dataString = 'q='+ q;
$.ajax({
type: "POST",
url: "search",
data: dataString,
- success: function() {
- $('#view').html("<div id='message'>blah!</div>");
+ //dataType: "json",
+ success: function(response) {
+ alert(response);
+ $('#view').show().html(response);
$('#spinner').hide();
}
});