Skip to content
Extraits de code Groupes Projets
Valider 778e44f1 rédigé par echarp's avatar echarp
Parcourir les fichiers

Cleaner URL when using the filter form

parent d25e133b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# Cleans up filter submission, for cleaner URL
$(document).on 'turbolinks:load', ->
$('body.filter form :input').prop 'disabled', false
$('body.filter form').submit ->
$('input[name=utf8]').prop 'disabled', true
$(':input', this).filter ->
this.value.length == 0
.prop 'disabled', true
......@@ -16,11 +16,13 @@
:markdown
#{t '.period_year_helper'}
= label_tag 'period[year]', t('.period_year')
= number_field_tag 'period[year]', (Time.zone.today + 7.days).year
= number_field_tag 'period[year]', params['period[year]'],
placeholder: "Ex: #{(Time.zone.today + 7.days).year}"
.field.period_week
= label_tag 'period[week]', t('.period_week')
= number_field_tag 'period[week]', (Time.zone.today + 7.days).cweek
= number_field_tag 'period[week]', params['period[week]'],
placeholder: "Ex: #{(Time.zone.today + 7.days).cweek}"
.field.near_location
= label_tag 'near[location]', t('.near_location')
......
Fichier ajouté
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter