summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2011-06-08 20:50:55 (GMT)
committer Earl Miles2011-06-08 20:50:55 (GMT)
commit9625cb06bcbd67b38b962dad9324d18b71fc1fb6 (patch)
tree05ae2efece30f6db9431fe4c60d8b7e673346886
parent4446346b6489b36ad6fbc7b919cb024ffe98aa48 (diff)
Issue #1123300 by rvilar: Allow exposed forms ajax to work with imagebuttons.
-rw-r--r--js/ajax_view.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ajax_view.js b/js/ajax_view.js
index 76a58b9..01f1ae2 100644
--- a/js/ajax_view.js
+++ b/js/ajax_view.js
@@ -34,7 +34,7 @@ Drupal.behaviors.ViewsAjaxView.attach = function() {
$('form#views-exposed-form-' + settings.view_name.replace(/_/g, '-') + '-' + settings.view_display_id.replace(/_/g, '-'))
.filter(':not(.views-processed)')
.each(function () {
- var button = $('input[type=submit]', this);
+ var button = $('input[type=submit], input[type=image]', this);
button = button[0];
var ajax = new Drupal.ajax($(button).attr('id'), button, element_settings);