summaryrefslogtreecommitdiff
path: root/app/views/search/go.html.erb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-23 13:07:25 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-23 13:07:25 -0400
commit1ea3366c70ad87f2c0d3fa3ae3a56f27b691f696 (patch)
tree5446ee7a134b0aab31d4a232008f96acd88a291a /app/views/search/go.html.erb
parent395a12042bbe9c4eeca60e41c75004c3bdad4e87 (diff)
clean up the javascript everywhere
Diffstat (limited to 'app/views/search/go.html.erb')
-rw-r--r--app/views/search/go.html.erb23
1 files changed, 8 insertions, 15 deletions
diff --git a/app/views/search/go.html.erb b/app/views/search/go.html.erb
index 6e48b07..d2bf8f3 100644
--- a/app/views/search/go.html.erb
+++ b/app/views/search/go.html.erb
@@ -1,6 +1,11 @@
-<h5 id="search-down">&#x25B2; Advanced Search &#x25B2;</h5>
-<div id="advanced-search">
- <p> This is where the search will go </p>
+<div id="advanced_search" class="collapsible">
+ <div class="collapsed">
+ <h5><a href="#advanced_search">Advanced Search [show]</a></h5>
+ </div>
+ <div class="expanded">
+ <h5><a href="#collapse">Advanced Search [hide]</a></h5>
+ <p>This is where the advancedsearch will go.</p>
+ </div>
</div>
<%# Show search results if a query was not nill %>
@@ -26,15 +31,3 @@
<% end %>
<% end %>
-
-<script type="text/javascript" language="javascript">
-
- $(document).ready(function() {
-
- $("#search-down").click(function(){
- $("#search-down").text("▼ Advanced Search ▼").html();
- $("#advanced-search").slideDown( 'slow');
- });
-
- });
-</script> \ No newline at end of file