diff options
| author | Xinhui | 2017-06-05 16:47:06 +0200 |
|---|---|---|
| committer | Xinhui | 2017-06-05 16:47:06 +0200 |
| commit | f422c130f9bda3c425cc3e1b9604345ca3586fe1 (patch) | |
| tree | db41f199039c48bcb0a87f213692b77e1c48b564 /app/assets/javascripts | |
| parent | 560b21733c676187d02795332e8ec0491cd875b8 (diff) | |
| download | chouette-core-f422c130f9bda3c425cc3e1b9604345ca3586fe1.tar.bz2 | |
Referential Cleanup add date_type
Refs #3662
Diffstat (limited to 'app/assets/javascripts')
| -rw-r--r-- | app/assets/javascripts/cleanup.coffee | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/cleanup.coffee b/app/assets/javascripts/cleanup.coffee new file mode 100644 index 000000000..169a006a9 --- /dev/null +++ b/app/assets/javascripts/cleanup.coffee @@ -0,0 +1,9 @@ +$(document).on("change", 'input[name="clean_up[date_type]"]', (e) -> + type = $(this).val() + end_date = $('.cleanup_end_date_wrapper') + + if type == 'between' + end_date.removeClass('hidden').show() + else + end_date.hide() +) |
