From 479010bfa7e4dcb8ec14e4df51c24c96deb397a3 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 8 Aug 2009 16:42:23 +0200 Subject: fixed indentation --- public/javascripts/admin_search.js | 49 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 25 deletions(-) (limited to 'public/javascripts') diff --git a/public/javascripts/admin_search.js b/public/javascripts/admin_search.js index ba52bb5..e339c49 100644 --- a/public/javascripts/admin_search.js +++ b/public/javascripts/admin_search.js @@ -11,30 +11,29 @@ admin_search = { } $("#search_term").bind("keyup", function() { - if ($(this).attr("value")) { - $.ajax({ - type: "GET", - url: "/admin/search", - data: "search_term=" + $(this).attr("value"), - dataType: "json", - success : function(results) { - admin_search.show_results(results); - } - }); - } - else { - $('#search_results').slideUp(); - $('#search_results').empty(); - } - }); - }, + if ($(this).attr("value")) { + $.ajax({ + type: "GET", + url: "/admin/search", + data: "search_term=" + $(this).attr("value"), + dataType: "json", + success : function(results) { + admin_search.show_results(results); + } + }); + } + else { + $('#search_results').slideUp(); + $('#search_results').empty(); + } + }); + }, - show_results : function(results) { - $('#search_results').empty(); - for (result in results) { - $('#search_results').append("

" + results[result].title + "

"); - } - $('#search_results').slideDown(); + show_results : function(results) { + $('#search_results').empty(); + for (result in results) { + $('#search_results').append("

" + results[result].title + "

"); } - - } \ No newline at end of file + $('#search_results').slideDown(); + } +} \ No newline at end of file -- cgit v1.3