From: Dobrica Pavlinusic Date: Wed, 30 Jun 2010 21:58:11 +0000 (+0200) Subject: don't mess with tabindex X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;ds=sidebyside;h=814278b4ec0c2e24bbf4a4879b7a2018d364b124;hp=832d76c2168d70a63ff02891fa4b03eaa74ba774;p=MojoFacets.git don't mess with tabindex and don't trigger apply_regex on empty value --- diff --git a/templates/all_checkboxes.html.ep b/templates/all_checkboxes.html.ep index 3b36fcf..e5c9e95 100644 --- a/templates/all_checkboxes.html.ep +++ b/templates/all_checkboxes.html.ep @@ -4,9 +4,9 @@ none @@ -70,8 +70,12 @@ $('a#excluded').click( function(){ // regex for column names var apply_regex = function(e) { - console.debug( this, e ); - var r = new RegExp( this.value ,'i'); + var user_regex = this.value; + console.debug( this, e, user_regex ); + + if ( user_regex == '' ) return false; + + var r = new RegExp( user_regex,'i'); var included = 0; var excluded = 0; $("input[type='checkbox']:not([disabled='disabled'])").each( function(i,element){