Closed (outdated)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2012 at 13:15 UTC
Updated:
20 Jul 2026 at 20:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
davidgrayston commentedThe attached patch will prevent the default action of an auto-submit form if the view is using AJAX and has the submit button hidden. It will then submit the form using the ".ctools-auto-submit-click" click event
There is probably a better way to achieve this, but hopefully this is a good starting point
Comment #2
merlinofchaos commentedSetting proper status so this gets reviewed.
Comment #4
davidgrayston commentedUpdated status so this gets reviewed (passed testing)
Comment #5
mducharme commentedIf you use the 'element-invisible' css instead of setting a display: none property then the expected behaviour works. This is a suitable workaround imho.
Comment #6
steeph commentedThe patch works well for me. Thanks!
(Is this enough to set it to RTBC? I'm kind of new so I don't know if more should test it.)
Comment #7
davidsheart02 commentedI attempted to use this patch with D 7.32. It applied cleanly but did not prevent the enter key from performing the default action of submitting the form for me. The submit action is never triggered thus the underlying code never runs. I can confirm that this issue does not occur in FF. It is present in Chrome and IE11. Any thoughts on an updated patch that addresses these browsers?
Comment #9
quotesbro commentedComment #10
abhij89 commentedHi,
I did updated the module based on the suggestion that it has update. And since i have updated the module, the exposed filters are not working properly, ajax submission is gone, and form is submitting using get method. Since the action of the form is set to "/", hence resulting in non-functioning of filters, how to overcome this, any idea? I tried to apply the patch but it doesn't seems to be working either.
Comment #12
abhij89 commentedComment #13
quotesbro commented@abhij89, I guess your problem caused by update to Views 7.x-3.10.
In views/js/ajax_view.js change
this.$exposed_form = this.$view.children('.view-filters').children('form');back to
this.$exposed_form = $('form#views-exposed-form-'+ settings.view_name.replace(/_/g, '-') + '-' + settings.view_display_id.replace(/_/g, '-'));(see https://www.drupal.org/node/1809958#comment-9235493)
Comment #14
quotesbro commentedComment #15
abhij89 commentedThanks @dberror it worked.
Comment #16
japerryDrupal 7 is no longer supported, closing.