Using the Jquery Update 2.x-dev which brings Jquery 1.3.2 I get this javascript error:
Error: uncaught exception: Syntax error, unrecognized expression: )
I think this is because :not(expr) doesn't work when expr == ""

Here is a patch that solved the problem for me:

Index: sites/all/modules/views_hacks/views_filters_autosubmit/views_filters_autosubmit.js
===================================================================
--- sites/all/modules/views_hacks/views_filters_autosubmit/views_filters_autosubmit.js	(revision 3854)
+++ sites/all/modules/views_hacks/views_filters_autosubmit/views_filters_autosubmit.js	(working copy)
@@ -7,12 +7,17 @@
 Drupal.behaviors.vfas = function(context) {
   $('form#'+Drupal.settings.vfas.form_id+':not(.vfas-processed)', context).each(function() {
     var self = this;
+    var exceptions = Drupal.settings.vfas.exceptions;
+    if (exceptions != '' && exceptions != null && typeof(exceptions) != undefined) {
+      exceptions = ':not('+Drupal.settings.vfas.exceptions+')';
+    }
     $(self).addClass('vfas-processed');
     $('#'+Drupal.settings.vfas.submit_id, self).hide();
-    $('div.views-exposed-widget input:not('+Drupal.settings.vfas.exceptions+')', self).change(function() {
+    //alert('div.views-exposed-widget input:not('+Drupal.settings.vfas.exceptions+')');
+    $('div.views-exposed-widget input'+exceptions, self).change(function() {
       $(self).submit();
     });
-    $('div.views-exposed-widget select:not('+Drupal.settings.vfas.exceptions+')', self).change(function() {
+    $('div.views-exposed-widget select'+exceptions, self).change(function() {
       $(self).submit();
     });
   });

Hope it helps someone.

Comments

marcus_clements’s picture

Just spotted I left in a commented alert. Here is the patch without it:

Index: sites/all/modules/views_hacks/views_filters_autosubmit/views_filters_autosubmit.js
===================================================================
--- sites/all/modules/views_hacks/views_filters_autosubmit/views_filters_autosubmit.js	(revision 3854)
+++ sites/all/modules/views_hacks/views_filters_autosubmit/views_filters_autosubmit.js	(working copy)
@@ -7,12 +7,16 @@
 Drupal.behaviors.vfas = function(context) {
   $('form#'+Drupal.settings.vfas.form_id+':not(.vfas-processed)', context).each(function() {
     var self = this;
+    var exceptions = Drupal.settings.vfas.exceptions;
+    if (exceptions != '' && exceptions != null && typeof(exceptions) != undefined) {
+      exceptions = ':not('+Drupal.settings.vfas.exceptions+')';
+    }
     $(self).addClass('vfas-processed');
     $('#'+Drupal.settings.vfas.submit_id, self).hide();
-    $('div.views-exposed-widget input:not('+Drupal.settings.vfas.exceptions+')', self).change(function() {
+    $('div.views-exposed-widget input'+exceptions, self).change(function() {
       $(self).submit();
     });
-    $('div.views-exposed-widget select:not('+Drupal.settings.vfas.exceptions+')', self).change(function() {
+    $('div.views-exposed-widget select'+exceptions, self).change(function() {
       $(self).submit();
     });
   });
infojunkie’s picture

Thanks for the patch. I will review it and check it in when I get back from vacation, about a week from now.

infojunkie’s picture

Status: Active » Fixed

Committed to the latest dev. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.