Commit d03ee22375b4b7dcac890d737458fe0ecf4e289f

Authored by Braulio Bhavamitra
1 parent 50c39865

searches: use replaceWith to avoid repetition

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
app/views/search/search.js.erb
1   -jQuery('#search-content').html('<%= escape_javascript(render :partial => "search_content") %>');
  1 +jQuery('#search-content').replaceWith('<%= escape_javascript(render "search_content") %>');
  2 +
... ...