[Git][noosfero/noosfero][master] 2 commits: Fix double submit in search form

Rodrigo Souto gitlab at mg.gitlab.com
Tue Jul 31 15:18:45 BRT 2018


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
446631ba by Iasmin Mendes at 2018-07-31T13:10:19Z
Fix double submit in search form

- - - - -
4316d2de by Rodrigo Souto at 2018-07-31T18:18:42Z
Merge branch 'fix-search-form-submit' into 'master'

Fix double submit in search form

See merge request noosfero/noosfero!1581
- - - - -


1 changed file:

- public/javascripts/search.js


Changes:

=====================================
public/javascripts/search.js
=====================================
@@ -12,12 +12,12 @@
 
   // Sorting and Views
   $('#search-filters select').change(function(){
-    $('form.search_form').submit();
+    $(this).closest('form.search_form').submit()
   });
 
   // Filter submenu
   $('#search-subheader select').change(function(){
-    $('form.search_form').submit();
+    $(this).closest('form.search_form').submit()
   });
 
   // Form Ajax submission



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/e832782b4e9c7da4931128b7f0a2320f5e802a81...4316d2de900b8d48c70700391e280f8ebcc47beb

-- 
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/e832782b4e9c7da4931128b7f0a2320f5e802a81...4316d2de900b8d48c70700391e280f8ebcc47beb
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180731/12b02240/attachment.html>


More information about the Noosfero-dev mailing list