[noosfero/noosfero][master] searches: use replaceWith to avoid repetition

Bráulio Bhavamitra gitlab at gitlab.com
Thu Mar 26 22:12:22 BRT 2015


Bráulio Bhavamitra pushed to master at Noosfero / noosfero


Commits:
d03ee223 by Braulio Bhavamitra at 2015-03-26T22:12:06Z
searches: use replaceWith to avoid repetition

- - - - -


1 changed file:

- app/views/search/search.js.erb


Changes:

=====================================
app/views/search/search.js.erb
=====================================
--- a/app/views/search/search.js.erb
+++ b/app/views/search/search.js.erb
@@ -1 +1,2 @@
-jQuery('#search-content').html('<%= escape_javascript(render :partial => "search_content") %>');
+jQuery('#search-content').replaceWith('<%= escape_javascript(render "search_content") %>');
+


View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/d03ee22375b4b7dcac890d737458fe0ecf4e289f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150327/cd87fe16/attachment-0001.html>


More information about the Noosfero-dev mailing list