Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed 'null' key in locale, give same javascript behaviour to other b…

…oolean ransack predicates
  • Loading branch information...
commit 21681aa839aa4634925c63b664603fc4944c5365 1 parent e273756
@ndbroadbent ndbroadbent authored
View
2  app/assets/javascripts/search.js.coffee
@@ -27,7 +27,7 @@
$("select.predicate").live "change", ->
value_el = $('input#' + $(this).attr('id').slice(0, -1) + "v_0_value");
- if $(this).val() == "present" || $(this).val() == "blank"
+ if $(this).val() in ["true", "false", "blank", "present", "null", "not_null"]
value_el.val("true")
value_el.hide()
else
View
2  config/locales/en-US_fat_free_crm.yml
@@ -596,7 +596,7 @@ en-US:
not_cont: doesn't contain
blank: is blank
present: is present
- null: is null
+ "null": is null
not_null: is not null
Please sign in to comment.
Something went wrong with that request. Please try again.