Permalink
Browse files

tags make search

  • Loading branch information...
1 parent 35cb214 commit 43036e06b34d9b3a21eb4b0f7aede912c740d375 @akariv committed May 29, 2012
Showing with 23 additions and 5 deletions.
  1. +8 −0 src/gov-watch.iced
  2. +15 −5 src/static/js/gov-watch.js
View
@@ -488,6 +488,12 @@ setup_subscriptions = ->
-> $("#subscribe").modal('hide'))
return false
+setup_tags = ->
+ $(".tags > ul > li").click ->
+ search_term = $(this).text()
+ show_watermark(false)
+ $("#searchbox").val(search_term)
+ update_history()
## Handles the site's data (could be from local storage or freshly loaded)
@@ -549,6 +555,8 @@ process_data = ->
setup_subscriptions()
+ setup_tags()
+
# sidebox filters init
$("#books li.book a").click ->
selected_book = $(this).html()
Oops, something went wrong.

0 comments on commit 43036e0

Please sign in to comment.