aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authoraf832017-07-06 12:18:31 +0200
committeraf832017-07-06 12:18:31 +0200
commita78db962d1f25f569ff3e8294cd565137ede92d3 (patch)
treea310f54f17077b7939365740fa694026cf839e9e /app/assets/javascripts
parentebd292c7a6abaab5aeb90b37e34e21253184979f (diff)
downloadchouette-core-a78db962d1f25f569ff3e8294cd565137ede92d3.tar.bz2
Change wording for clean up + add exclusive dates for between clean up
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/cleanup.coffee11
1 files changed, 8 insertions, 3 deletions
diff --git a/app/assets/javascripts/cleanup.coffee b/app/assets/javascripts/cleanup.coffee
index 169a006a9..7f6594018 100644
--- a/app/assets/javascripts/cleanup.coffee
+++ b/app/assets/javascripts/cleanup.coffee
@@ -2,8 +2,13 @@ $(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
+ if type == 'before'
+ end_date.hide()
+ $("label[for='clean_up_begin_date_3i']").html("Date de fin de purge");
+ else if type == 'after'
end_date.hide()
+ $("label[for='clean_up_begin_date_3i']").html("Date de début de purge");
+ else
+ $("label[for='clean_up_begin_date_3i']").html("Date de début de purge");
+ end_date.show()
)