Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Remove search-term should reload index
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Hochfilzer committed Dec 20, 2012
1 parent 61e1fae commit 5bf0413
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/assets/javascripts/search.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jQuery ->
tokenValue: 'search_name',
tokenFormatter: (item) -> "<li><p>" + item[this.tokenValue] + "</p></li>",
onAdd: (item) -> tokenInputSearch()
onDelete: (item) -> window.location.reload()
})

if $('#token-input-search_search_text').length > 0
Expand Down
3 changes: 2 additions & 1 deletion spec/requests/facilities_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@

it "has a form for a new facility" do
sign_in_user name: 'Testuser', password: 'notsecret'
visit switch_language_path(:en)
visit user_facilities_path(@user1)
page.all("option", value: "Admin").select
select "Admin", from: "facility_name"
check 'read'
uncheck 'write'
check 'execute'
Expand Down

0 comments on commit 5bf0413

Please sign in to comment.