and really fix it
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 1 Jul 2010 20:59:36 +0000 (22:59 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 1 Jul 2010 20:59:36 +0000 (22:59 +0200)
templates/all_checkboxes.html.ep

index 3065a22..e5c9e95 100644 (file)
@@ -79,7 +79,7 @@ var apply_regex = function(e) {
        var included = 0;
        var excluded = 0;
     $("input[type='checkbox']:not([disabled='disabled'])").each( function(i,element){
-               if ( r.test( user_regex ) ) {
+               if ( r.test( this.value ) ) {
                        $(this).parent().removeClass('excluded').addClass('included');
                        included++;
                } else {