diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-01 14:48:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-01 14:48:06 +0000 |
commit | 464171677145132a9646061239b6e3aeb92b9538 (patch) | |
tree | 9898326d7ea368d282de8405b8f0fc8ebbfacd65 /app/views/queries | |
parent | a80b909cc8f7f0ca47744093ff0decaaa45f2264 (diff) | |
download | redmine-464171677145132a9646061239b6e3aeb92b9538.tar.gz redmine-464171677145132a9646061239b6e3aeb92b9538.zip |
Disable unused filter fields so they don't get submitted.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5277 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/queries')
-rw-r--r-- | app/views/queries/_filters.rhtml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/queries/_filters.rhtml b/app/views/queries/_filters.rhtml index 7fdd29d09..d6d3db7f5 100644 --- a/app/views/queries/_filters.rhtml +++ b/app/views/queries/_filters.rhtml @@ -21,10 +21,14 @@ function toggle_filter(field) { if (check_box.checked) { Element.show("operators_" + field); + Form.Element.enable("operators_" + field); + Form.Element.enable("values_" + field); toggle_operator(field); } else { Element.hide("operators_" + field); Element.hide("div_values_" + field); + Form.Element.disable("operators_" + field); + Form.Element.disable("values_" + field); } } |